diff options
| author | Marie <github@yuugi.dev> | 2024-10-07 19:34:26 +0000 |
|---|---|---|
| committer | Marie <github@yuugi.dev> | 2024-10-07 19:34:26 +0000 |
| commit | ba5eec2129f1976c817925a1ec8ef10e23749d84 (patch) | |
| tree | 0c235c30592f7508584452a863ad4ecf2614b921 /packages/frontend/src/scripts | |
| parent | merge: Display instance follow/following relationships in instance view (part... (diff) | |
| parent | prevent login and password reset for system accounts (diff) | |
| download | sharkey-ba5eec2129f1976c817925a1ec8ef10e23749d84.tar.gz sharkey-ba5eec2129f1976c817925a1ec8ef10e23749d84.tar.bz2 sharkey-ba5eec2129f1976c817925a1ec8ef10e23749d84.zip | |
merge: Prevent deletion or suspension of system accounts (resolves #625) (!666)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/666
Closes #625
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
Diffstat (limited to 'packages/frontend/src/scripts')
| -rw-r--r-- | packages/frontend/src/scripts/show-system-account-dialog.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/frontend/src/scripts/show-system-account-dialog.ts b/packages/frontend/src/scripts/show-system-account-dialog.ts new file mode 100644 index 0000000000..3c28d901fc --- /dev/null +++ b/packages/frontend/src/scripts/show-system-account-dialog.ts @@ -0,0 +1,15 @@ +/* + * SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors + * SPDX-License-Identifier: AGPL-3.0-only + */ + +import * as os from '@/os.js'; +import { i18n } from '@/i18n.js'; + +export function showSystemAccountDialog(): Promise<void> { + return os.alert({ + type: 'error', + title: i18n.ts.systemAccountTitle, + text: i18n.ts.systemAccountDescription, + }); +} |