diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2019-12-02 09:19:34 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@framasoft.org> | 2019-12-02 09:19:34 +0100 |
commit | eb8f702c8398b7f51461c8e967c7bc7de3c10c16 (patch) | |
tree | df0ca5bd7804bd0e1bf37d3719ebc85647c69c16 /client/src/types/register-client-option.model.ts | |
parent | a3ce4ae847b749d4cb2ebebb4134264b7c58dcc5 (diff) | |
download | PeerTube-eb8f702c8398b7f51461c8e967c7bc7de3c10c16.tar.gz PeerTube-eb8f702c8398b7f51461c8e967c7bc7de3c10c16.tar.zst PeerTube-eb8f702c8398b7f51461c8e967c7bc7de3c10c16.zip |
(plugins) add helper to know if user is logged-in
Diffstat (limited to 'client/src/types/register-client-option.model.ts')
-rw-r--r-- | client/src/types/register-client-option.model.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts index 243d74dea..638b08653 100644 --- a/client/src/types/register-client-option.model.ts +++ b/client/src/types/register-client-option.model.ts | |||
@@ -9,6 +9,8 @@ export type RegisterClientOptions = { | |||
9 | export type RegisterClientHelpers = { | 9 | export type RegisterClientHelpers = { |
10 | getBaseStaticRoute: () => string | 10 | getBaseStaticRoute: () => string |
11 | 11 | ||
12 | isLoggedIn: () => boolean | ||
13 | |||
12 | getSettings: () => Promise<{ [ name: string ]: string }> | 14 | getSettings: () => Promise<{ [ name: string ]: string }> |
13 | 15 | ||
14 | translate: (toTranslate: string) => Promise<string> | 16 | translate: (toTranslate: string) => Promise<string> |