mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-27 14:28:53 +09:00
chore
This commit is contained in:
parent
c272e3bc3c
commit
6b92caf897
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user