mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2025-12-07 13:03:59 +00:00
Merge pull request #14 from ZeroCatDev/copilot/update-homework-edit-dialog-text
feat: Add configurable prompt text for homework edit dialog
This commit is contained in:
commit
8f5fc287fb
@ -4,7 +4,7 @@
|
||||
<v-card border>
|
||||
<v-card-title>{{ title }}</v-card-title>
|
||||
<v-card-subtitle>
|
||||
{{ autoSave ? "喵?喵呜!" : "写完后点击上传谢谢喵" }}
|
||||
{{ autoSave ? autoSavePromptText : manualSavePromptText }}
|
||||
</v-card-subtitle>
|
||||
<v-card-text>
|
||||
<div class="d-flex">
|
||||
@ -280,6 +280,12 @@ export default {
|
||||
},
|
||||
showQuickTools() {
|
||||
return getSetting("display.showQuickTools");
|
||||
},
|
||||
autoSavePromptText() {
|
||||
return getSetting("edit.autoSavePromptText");
|
||||
},
|
||||
manualSavePromptText() {
|
||||
return getSetting("edit.manualSavePromptText");
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@ -15,6 +15,14 @@
|
||||
<v-divider class="my-2"/>
|
||||
<setting-item :setting-key="'edit.refreshBeforeEdit'"/>
|
||||
|
||||
|
||||
<v-divider class="my-2"/>
|
||||
<setting-item :setting-key="'edit.autoSavePromptText'"/>
|
||||
|
||||
|
||||
<v-divider class="my-2"/>
|
||||
<setting-item :setting-key="'edit.manualSavePromptText'"/>
|
||||
|
||||
</v-list>
|
||||
</settings-card>
|
||||
</template>
|
||||
|
||||
@ -289,6 +289,20 @@ const settingsDefinitions = {
|
||||
description: "保存非当天数据需确认",
|
||||
icon: "mdi-calendar-alert",
|
||||
},
|
||||
"edit.autoSavePromptText": {
|
||||
type: "string",
|
||||
default: "喵?喵呜!",
|
||||
description: "自动保存模式提示文本",
|
||||
icon: "mdi-text-box-outline",
|
||||
// 作业编辑对话框在自动保存模式下显示的提示文本
|
||||
},
|
||||
"edit.manualSavePromptText": {
|
||||
type: "string",
|
||||
default: "写完后点击上传谢谢喵",
|
||||
description: "手动保存模式提示文本",
|
||||
icon: "mdi-text-box-outline",
|
||||
// 作业编辑对话框在手动保存模式下显示的提示文本
|
||||
},
|
||||
|
||||
// 开发者选项
|
||||
"developer.enabled": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user