blob: a221665295c6b7080e285b21f2cdf04602ec8a5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { i18n } from '@/i18n';
import { dialog } from '@/os';
import { store } from '@/store';
export function pleaseLogin() {
if (store.getters.isSignedIn) return;
dialog({
title: i18n.global.t('signinRequired'),
text: null
});
throw new Error('signin required');
}
|