wip
This commit is contained in:
parent
98b4e0b446
commit
c67e2e2a16
|
@ -12041,6 +12041,10 @@ export interface Locale extends ILocale {
|
||||||
* 画像にクレジット情報などのウォーターマークを追加することができます。
|
* 画像にクレジット情報などのウォーターマークを追加することができます。
|
||||||
*/
|
*/
|
||||||
"tip": string;
|
"tip": string;
|
||||||
|
/**
|
||||||
|
* 保存せずに終了しますか?
|
||||||
|
*/
|
||||||
|
"quitWithoutSaveConfirm": string;
|
||||||
/**
|
/**
|
||||||
* ウォーターマークの編集
|
* ウォーターマークの編集
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3225,6 +3225,7 @@ watermark: "ウォーターマーク"
|
||||||
defaultPreset: "デフォルトのプリセット"
|
defaultPreset: "デフォルトのプリセット"
|
||||||
_watermarkEditor:
|
_watermarkEditor:
|
||||||
tip: "画像にクレジット情報などのウォーターマークを追加することができます。"
|
tip: "画像にクレジット情報などのウォーターマークを追加することができます。"
|
||||||
|
quitWithoutSaveConfirm: "保存せずに終了しますか?"
|
||||||
title: "ウォーターマークの編集"
|
title: "ウォーターマークの編集"
|
||||||
cover: "全体に被せる"
|
cover: "全体に被せる"
|
||||||
repeat: "敷き詰める"
|
repeat: "敷き詰める"
|
||||||
|
|
|
@ -88,7 +88,12 @@ const emit = defineEmits<{
|
||||||
|
|
||||||
const dialog = useTemplateRef('dialog');
|
const dialog = useTemplateRef('dialog');
|
||||||
|
|
||||||
function cancel() {
|
async function cancel() {
|
||||||
|
const { canceled } = await os.confirm({
|
||||||
|
text: i18n.ts._watermarkEditor.quitWithoutSaveConfirm,
|
||||||
|
});
|
||||||
|
if (canceled) return;
|
||||||
|
|
||||||
emit('cancel');
|
emit('cancel');
|
||||||
dialog.value?.close();
|
dialog.value?.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue