Fix title of uninstall and archive dialog

This commit is contained in:
Girish Ramakrishnan
2025-11-13 09:23:30 +01:00
parent 39c68075fb
commit c25b14976c
3 changed files with 49 additions and 48 deletions
+4 -4
View File
@@ -7,7 +7,7 @@ const t = i18n.t;
import { ref, onMounted, useTemplateRef } from 'vue';
import { Button, InputDialog } from '@cloudron/pankow';
import { prettyLongDate } from '@cloudron/pankow/utils';
import { APP_TYPES, ISTATES, RSTATES } from '../../constants.js';
import { APP_TYPES } from '../../constants.js';
import AppsModel from '../../models/AppsModel.js';
const appsModel = AppsModel.create();
@@ -20,7 +20,7 @@ const latestBackup = ref(null);
async function onUninstall() {
const yes = await inputDialog.value.confirm({
title: t('app.uninstallDialog.title', { app: (props.app.label || props.app.fqdn) }),
title: t('app.uninstallDialog.title'),
message: t('app.uninstallDialog.description', { app: (props.app.label || props.app.fqdn) }),
confirmStyle: 'danger',
confirmLabel: t('app.uninstallDialog.uninstallAction'),
@@ -40,8 +40,8 @@ async function onArchive() {
if (!latestBackup.value) return;
const yes = await inputDialog.value.confirm({
title: t('app.archiveDialog.title', { app: (props.app.label || props.app.fqdn) }),
message: t('app.archiveDialog.description', { date: prettyLongDate(latestBackup.value.creationTime) }),
title: t('app.archiveDialog.title'),
message: t('app.archiveDialog.description', { app: (props.app.label || props.app.fqdn), date: prettyLongDate(latestBackup.value.creationTime) }),
confirmStyle: 'danger',
confirmLabel: t('app.archive.action'),
rejectLabel: t('main.dialog.cancel')