This commit is contained in:
syuilo
2020-12-26 10:47:36 +09:00
parent 9d81d06853
commit 5a8cc7851b
200 changed files with 1562 additions and 1533 deletions

View File

@@ -81,24 +81,24 @@ export default defineComponent({
menu(ev) {
os.modalMenu([this.isOwned ? {
icon: faPencilAlt,
text: this.$t('edit'),
text: this.$ts.edit,
action: async () => {
const { canceled, result } = await os.form(this.clip.name, {
name: {
type: 'string',
label: this.$t('name'),
label: this.$ts.name,
default: this.clip.name
},
description: {
type: 'string',
required: false,
multiline: true,
label: this.$t('description'),
label: this.$ts.description,
default: this.clip.description
},
isPublic: {
type: 'boolean',
label: this.$t('public'),
label: this.$ts.public,
default: this.clip.isPublic
}
});
@@ -111,7 +111,7 @@ export default defineComponent({
}
} : undefined, this.isOwned ? {
icon: faTrashAlt,
text: this.$t('delete'),
text: this.$ts.delete,
danger: true,
action: async () => {
const { canceled } = await os.dialog({