diff options
Diffstat (limited to 'src/client/scripts/please-login.ts')
| -rw-r--r-- | src/client/scripts/please-login.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/scripts/please-login.ts b/src/client/scripts/please-login.ts new file mode 100644 index 0000000000..7125541bb1 --- /dev/null +++ b/src/client/scripts/please-login.ts @@ -0,0 +1,10 @@ +export default ($root: any) => { + if ($root.$store.getters.isSignedIn) return; + + $root.dialog({ + title: $root.$t('@.signin-required'), + text: null + }); + + throw new Error('signin required'); +}; |