This commit is contained in:
syuilo
2020-09-06 18:38:09 +09:00
parent 3762116c17
commit d79a1a4e0e
36 changed files with 135 additions and 130 deletions

View File

@@ -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');
};
}