mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-24 04:53:33 +00:00
15 lines
273 B
TypeScript
15 lines
273 B
TypeScript
import { locale } from '@/i18n';
|
|
import { dialog } from '@/os';
|
|
import { store } from '@/store';
|
|
|
|
export function pleaseLogin() {
|
|
if (store.getters.isSignedIn) return;
|
|
|
|
dialog({
|
|
title: locale['signinRequired'],
|
|
text: null
|
|
});
|
|
|
|
throw new Error('signin required');
|
|
}
|