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