mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-27 00:14:12 +02:00
refactor(frontend): scripts -> utility
This commit is contained in:
21
packages/frontend/src/utility/show-moved-dialog.ts
Normal file
21
packages/frontend/src/utility/show-moved-dialog.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import * as os from '@/os.js';
|
||||
import { $i } from '@/account.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export function showMovedDialog() {
|
||||
if (!$i) return;
|
||||
if (!$i.movedTo) return;
|
||||
|
||||
os.alert({
|
||||
type: 'error',
|
||||
title: i18n.ts.accountMovedShort,
|
||||
text: i18n.ts.operationForbidden,
|
||||
});
|
||||
|
||||
throw new Error('account moved');
|
||||
}
|
||||
Reference in New Issue
Block a user