This commit is contained in:
syuilo 2025-05-31 17:54:33 +09:00
parent 98b4e0b446
commit c67e2e2a16
3 changed files with 11 additions and 1 deletions

4
locales/index.d.ts vendored
View File

@ -12041,6 +12041,10 @@ export interface Locale extends ILocale {
*
*/
"tip": string;
/**
*
*/
"quitWithoutSaveConfirm": string;
/**
*
*/

View File

@ -3225,6 +3225,7 @@ watermark: "ウォーターマーク"
defaultPreset: "デフォルトのプリセット"
_watermarkEditor:
tip: "画像にクレジット情報などのウォーターマークを追加することができます。"
quitWithoutSaveConfirm: "保存せずに終了しますか?"
title: "ウォーターマークの編集"
cover: "全体に被せる"
repeat: "敷き詰める"

View File

@ -88,7 +88,12 @@ const emit = defineEmits<{
const dialog = useTemplateRef('dialog');
function cancel() {
async function cancel() {
const { canceled } = await os.confirm({
text: i18n.ts._watermarkEditor.quitWithoutSaveConfirm,
});
if (canceled) return;
emit('cancel');
dialog.value?.close();
}