1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-27 14:28:53 +09:00
This commit is contained in:
NoriDev 2024-10-03 13:01:28 +09:00
parent c272e3bc3c
commit 6b92caf897
3 changed files with 16 additions and 15 deletions

View File

@ -538,7 +538,7 @@ async function toggleLocalOnly() {
text: i18n.ts.disableFederationConfirmWarn,
actions: [
{
value: 'yes' as const,
value: 'ok' as const,
text: i18n.ts.disableFederationOk,
primary: true,
},
@ -548,14 +548,14 @@ async function toggleLocalOnly() {
danger: true,
},
{
value: 'no' as const,
value: 'cancel' as const,
text: i18n.ts.cancel,
},
],
});
if (confirm.canceled) return;
if (confirm.result === 'no') return;
if (confirm.result === 'cancel') return;
if (confirm.result === 'neverShow') {
miLocalStorage.setItem('neverShowLocalOnlyInfo', 'true');
@ -793,7 +793,7 @@ async function post(ev?: MouseEvent) {
caption: i18n.ts._altWarning.noAltWarningDescription,
actions: [
{
value: 'yes' as const,
value: 'ok' as const,
text: i18n.ts.thisPostMayBeAnnoyingIgnore,
},
{
@ -802,7 +802,7 @@ async function post(ev?: MouseEvent) {
danger: true,
},
{
value: 'no' as const,
value: 'cancel' as const,
text: i18n.ts.goBack,
primary: true,
},
@ -810,7 +810,7 @@ async function post(ev?: MouseEvent) {
});
if (confirm.canceled) return;
if (confirm.result === 'no') return;
if (confirm.result === 'cancel') return;
if (confirm.result === 'neverShow') {
defaultStore.set('showNoAltTextWarning', false);

View File

@ -530,7 +530,7 @@ async function toggleLocalOnly() {
text: i18n.ts.disableFederationConfirmWarn,
actions: [
{
value: 'yes' as const,
value: 'ok' as const,
text: i18n.ts.disableFederationOk,
primary: true,
},
@ -540,14 +540,14 @@ async function toggleLocalOnly() {
danger: true,
},
{
value: 'no' as const,
value: 'cancel' as const,
text: i18n.ts.cancel,
},
],
});
if (confirm.canceled) return;
if (confirm.result === 'no') return;
if (confirm.result === 'cancel') return;
if (confirm.result === 'neverShow') {
miLocalStorage.setItem('neverShowLocalOnlyInfo', 'true');
@ -782,7 +782,7 @@ async function post(ev?: MouseEvent) {
caption: i18n.ts._altWarning.noAltWarningDescription,
actions: [
{
value: 'yes' as const,
value: 'ok' as const,
text: i18n.ts.thisPostMayBeAnnoyingIgnore,
},
{
@ -791,7 +791,7 @@ async function post(ev?: MouseEvent) {
danger: true,
},
{
value: 'no' as const,
value: 'cancel' as const,
text: i18n.ts.goBack,
primary: true,
},
@ -799,7 +799,7 @@ async function post(ev?: MouseEvent) {
});
if (confirm.canceled) return;
if (confirm.result === 'no') return;
if (confirm.result === 'cancel') return;
if (confirm.result === 'neverShow') {
defaultStore.set('showNoAltTextWarning', false);

View File

@ -234,7 +234,7 @@ export function getNoteMenu(props: {
text: i18n.ts.disableNoteEditConfirmWarn,
actions: [
{
value: 'yes' as const,
value: 'ok' as const,
text: i18n.ts.disableNoteEditOk,
},
{
@ -243,14 +243,15 @@ export function getNoteMenu(props: {
danger: true,
},
{
value: 'no' as const,
value: 'cancel' as const,
text: i18n.ts.cancel,
primary: true,
},
],
});
if (confirm.canceled) return;
if (confirm.result === 'no') return;
if (confirm.result === 'cancel') return;
if (confirm.result === 'neverShow') {
miLocalStorage.setItem('neverShowNoteEditInfo', 'true');