summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpiuvas <piuvas@proton.me>2024-11-28 19:12:07 -0300
committerpiuvas <piuvas@proton.me>2024-11-28 19:12:07 -0300
commit51bc393d589eceb60e5e70a9ab4ca1e2d95dcf6b (patch)
tree0bb44a47625b0c62af456e8c98ff9fd63b5a39eb
parentmake block confirm dialog localizable. (diff)
downloadsharkey-51bc393d589eceb60e5e70a9ab4ca1e2d95dcf6b.tar.gz
sharkey-51bc393d589eceb60e5e70a9ab4ca1e2d95dcf6b.tar.bz2
sharkey-51bc393d589eceb60e5e70a9ab4ca1e2d95dcf6b.zip
remove title and change dialog icon
-rw-r--r--locales/index.d.ts4
-rw-r--r--packages/frontend/src/scripts/get-user-menu.ts3
-rw-r--r--sharkey-locales/en-US.yml1
3 files changed, 1 insertions, 7 deletions
diff --git a/locales/index.d.ts b/locales/index.d.ts
index f0f8df56bb..d1cb1f97ea 100644
--- a/locales/index.d.ts
+++ b/locales/index.d.ts
@@ -11000,10 +11000,6 @@ export interface Locale extends ILocale {
* Show warning when opening external URLs
*/
"warnExternalUrl": string;
- /**
- * Confirm
- */
- "confirm": string;
"_mfm": {
/**
* This is not a widespread feature, it may not display properly on most other fedi software, including other Misskey forks
diff --git a/packages/frontend/src/scripts/get-user-menu.ts b/packages/frontend/src/scripts/get-user-menu.ts
index 55189aa481..090cffe203 100644
--- a/packages/frontend/src/scripts/get-user-menu.ts
+++ b/packages/frontend/src/scripts/get-user-menu.ts
@@ -103,8 +103,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
async function getConfirmed(text: string): Promise<boolean> {
const confirm = await os.confirm({
- type: 'warning',
- title: i18n.ts.confirm,
+ type: 'question',
text,
});
diff --git a/sharkey-locales/en-US.yml b/sharkey-locales/en-US.yml
index e30ce0714f..163fd0b0ae 100644
--- a/sharkey-locales/en-US.yml
+++ b/sharkey-locales/en-US.yml
@@ -156,7 +156,6 @@ allowClickingNotifications: "Allow clicking on pop-up notifications"
pinnedOnly: "Pinned"
blockingYou: "Blocking you"
warnExternalUrl: "Show warning when opening external URLs"
-confirm: "Confirm"
_delivery:
stop: "Suspend delivery"
resume: "Resume delivery"