From 3d2b982a946de0c8f40e417a0bbbea22ff614723 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 24 Feb 2019 03:52:12 +0900 Subject: [PATCH] Use internal alert function --- .../app/mobile/views/components/drive.vue | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/client/app/mobile/views/components/drive.vue b/src/client/app/mobile/views/components/drive.vue index 88eeaf0150..d3bd23df6c 100644 --- a/src/client/app/mobile/views/components/drive.vue +++ b/src/client/app/mobile/views/components/drive.vue @@ -421,7 +421,10 @@ export default Vue.extend({ renameFolder() { if (this.folder == null) { - alert(this.$t('root-rename-alert')); + this.$root.dialog({ + type: 'error', + text: this.$t('root-rename-alert') + }); return; } const name = window.prompt(this.$t('folder-name'), this.folder.name); @@ -436,7 +439,10 @@ export default Vue.extend({ moveFolder() { if (this.folder == null) { - alert(this.$t('root-move-alert')); + this.$root.dialog({ + type: 'error', + text: this.$t('root-move-alert') + }); return; } this.$chooseDriveFolder().then(folder => { @@ -456,7 +462,10 @@ export default Vue.extend({ url: url, folderId: this.folder ? this.folder.id : undefined }); - alert(this.$t('uploading')); + this.$root.dialog({ + type: 'info', + text: this.$t('uploading') + }); }, onChangeLocalFile() { @@ -467,7 +476,10 @@ export default Vue.extend({ deleteFolder() { if (this.folder == null) { - alert(this.$t('root-delete-alert')); + this.$root.dialog({ + type: 'error', + text: this.$t('root-delete-alert') + }); return; } this.$root.api('drive/folders/delete', {