mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-10 23:15:34 -04:00
switch cancel text
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
v-model="dialog"
|
v-model="dialog"
|
||||||
:title="$t('announcements.announcements')"
|
:title="$t('announcements.announcements')"
|
||||||
:icon="$globals.icons.bullhornVariant"
|
:icon="$globals.icons.bullhornVariant"
|
||||||
|
:cancel-text="$t('general.done')"
|
||||||
width="100%"
|
width="100%"
|
||||||
max-width="1200"
|
max-width="1200"
|
||||||
>
|
>
|
||||||
@@ -44,7 +45,7 @@ watch(
|
|||||||
|
|
||||||
async function setLastRead(key: string) {
|
async function setLastRead(key: string) {
|
||||||
const user = auth.user.value!;
|
const user = auth.user.value!;
|
||||||
if (user.lastReadAnnouncement && key < user.lastReadAnnouncement) {
|
if (user.lastReadAnnouncement && key <= user.lastReadAnnouncement) {
|
||||||
// Don't update the last read announcement if it's older than the current one
|
// Don't update the last read announcement if it's older than the current one
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
emit('cancel');
|
emit('cancel');
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ $t("general.cancel") }}
|
{{ cancelText }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
|
|
||||||
@@ -116,10 +116,16 @@ interface DialogProps {
|
|||||||
maxWidth?: number | string | null;
|
maxWidth?: number | string | null;
|
||||||
loading?: boolean;
|
loading?: boolean;
|
||||||
top?: boolean | null;
|
top?: boolean | null;
|
||||||
|
keepOpen?: boolean;
|
||||||
|
|
||||||
|
// submit
|
||||||
submitIcon?: string | null;
|
submitIcon?: string | null;
|
||||||
submitText?: string;
|
submitText?: string;
|
||||||
submitDisabled?: boolean;
|
submitDisabled?: boolean;
|
||||||
keepOpen?: boolean;
|
|
||||||
|
// cancel
|
||||||
|
cancelText?: string;
|
||||||
|
|
||||||
// actions
|
// actions
|
||||||
canDelete?: boolean;
|
canDelete?: boolean;
|
||||||
canConfirm?: boolean;
|
canConfirm?: boolean;
|
||||||
@@ -141,10 +147,17 @@ const props = withDefaults(defineProps<DialogProps>(), {
|
|||||||
maxWidth: null,
|
maxWidth: null,
|
||||||
loading: false,
|
loading: false,
|
||||||
top: null,
|
top: null,
|
||||||
|
keepOpen: false,
|
||||||
|
|
||||||
|
// submit
|
||||||
submitIcon: null,
|
submitIcon: null,
|
||||||
submitText: () => useNuxtApp().$i18n.t("general.create"),
|
submitText: () => useNuxtApp().$i18n.t("general.create"),
|
||||||
submitDisabled: false,
|
submitDisabled: false,
|
||||||
keepOpen: false,
|
|
||||||
|
// cancel
|
||||||
|
cancelText: () => useNuxtApp().$i18n.t("general.cancel"),
|
||||||
|
|
||||||
|
// actions
|
||||||
canDelete: false,
|
canDelete: false,
|
||||||
canConfirm: false,
|
canConfirm: false,
|
||||||
canSubmit: false,
|
canSubmit: false,
|
||||||
|
|||||||
@@ -98,6 +98,7 @@
|
|||||||
"dashboard": "Dashboard",
|
"dashboard": "Dashboard",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"disabled": "Disabled",
|
"disabled": "Disabled",
|
||||||
|
"done": "Done",
|
||||||
"download": "Download",
|
"download": "Download",
|
||||||
"duplicate": "Duplicate",
|
"duplicate": "Duplicate",
|
||||||
"edit": "Edit",
|
"edit": "Edit",
|
||||||
|
|||||||
Reference in New Issue
Block a user