This commit is contained in:
syuilo 2020-09-05 11:14:42 +09:00
parent 190486d841
commit c399e3151e
73 changed files with 329 additions and 254 deletions

View file

@ -282,13 +282,13 @@ export default defineComponent({
}).catch(err => {
switch (err) {
case 'detected-circular-definition':
this.$root.dialog({
this.$root.showDialog({
title: this.$t('unableToProcess'),
text: this.$t('circularReferenceFolder')
});
break;
default:
this.$root.dialog({
this.$root.showDialog({
type: 'error',
text: this.$t('error')
});
@ -303,7 +303,7 @@ export default defineComponent({
},
urlUpload() {
this.$root.dialog({
this.$root.showDialog({
title: this.$t('uploadFromUrl'),
input: {
placeholder: this.$t('uploadFromUrlDescription')
@ -315,7 +315,7 @@ export default defineComponent({
folderId: this.folder ? this.folder.id : undefined
});
this.$root.dialog({
this.$root.showDialog({
title: this.$t('uploadFromUrlRequested'),
text: this.$t('uploadFromUrlMayTakeTime')
});
@ -323,7 +323,7 @@ export default defineComponent({
},
createFolder() {
this.$root.dialog({
this.$root.showDialog({
title: this.$t('createFolder'),
input: {
placeholder: this.$t('folderName')
@ -340,7 +340,7 @@ export default defineComponent({
},
renameFolder(folder) {
this.$root.dialog({
this.$root.showDialog({
title: this.$t('renameFolder'),
input: {
placeholder: this.$t('inputNewFolderName'),
@ -367,14 +367,14 @@ export default defineComponent({
}).catch(err => {
switch(err.id) {
case 'b0fc8a17-963c-405d-bfbc-859a487295e1':
this.$root.dialog({
this.$root.showDialog({
type: 'error',
title: this.$t('unableToDelete'),
text: this.$t('hasChildFilesOrFolders')
});
break;
default:
this.$root.dialog({
this.$root.showDialog({
type: 'error',
text: this.$t('unableToDelete')
});