wip
This commit is contained in:
parent
98b4e0b446
commit
c67e2e2a16
|
@ -12041,6 +12041,10 @@ export interface Locale extends ILocale {
|
|||
* 画像にクレジット情報などのウォーターマークを追加することができます。
|
||||
*/
|
||||
"tip": string;
|
||||
/**
|
||||
* 保存せずに終了しますか?
|
||||
*/
|
||||
"quitWithoutSaveConfirm": string;
|
||||
/**
|
||||
* ウォーターマークの編集
|
||||
*/
|
||||
|
|
|
@ -3225,6 +3225,7 @@ watermark: "ウォーターマーク"
|
|||
defaultPreset: "デフォルトのプリセット"
|
||||
_watermarkEditor:
|
||||
tip: "画像にクレジット情報などのウォーターマークを追加することができます。"
|
||||
quitWithoutSaveConfirm: "保存せずに終了しますか?"
|
||||
title: "ウォーターマークの編集"
|
||||
cover: "全体に被せる"
|
||||
repeat: "敷き詰める"
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue