aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/types
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2019-12-02 09:19:34 +0100
committerChocobozzz <chocobozzz@framasoft.org>2019-12-02 09:19:34 +0100
commiteb8f702c8398b7f51461c8e967c7bc7de3c10c16 (patch)
treedf0ca5bd7804bd0e1bf37d3719ebc85647c69c16 /client/src/types
parenta3ce4ae847b749d4cb2ebebb4134264b7c58dcc5 (diff)
downloadPeerTube-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')
-rw-r--r--client/src/types/register-client-option.model.ts2
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 = {
9export type RegisterClientHelpers = { 9export 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>