wip
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
export default ($root: any) => {
|
||||
if ($root.$store.getters.isSignedIn) return;
|
||||
import { locale } from '@/i18n';
|
||||
import { dialog } from '@/os';
|
||||
import { store } from '@/store';
|
||||
|
||||
os.dialog({
|
||||
title: $root.$t('signinRequired'),
|
||||
export function pleaseLogin() {
|
||||
if (store.getters.isSignedIn) return;
|
||||
|
||||
dialog({
|
||||
title: locale['signinRequired'],
|
||||
text: null
|
||||
});
|
||||
|
||||
throw new Error('signin required');
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user