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