Sharkey/src/client/scripts/please-login.ts

11 lines
195 B
TypeScript
Raw Normal View History

export default ($root: any) => {
if ($root.$store.getters.isSignedIn) return;
$root.dialog({
title: $root.$t('@.signin-required'),
text: null
});
throw new Error('signin required');
};