[Client] Improve alert component

This commit is contained in:
syuilo 2018-11-14 16:30:58 +09:00
parent 850396e9da
commit 11afa8140c
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
31 changed files with 268 additions and 672 deletions

View file

@ -313,12 +313,9 @@ export default Vue.extend({
}).catch(err => {
switch (err) {
case 'detected-circular-definition':
this.$dialog({
this.$root.alert({
title: this.$t('unable-to-process'),
text: this.$t('circular-reference-detected'),
actions: [{
text: this.$t('@.ok')
}]
text: this.$t('circular-reference-detected')
});
break;
default:
@ -343,12 +340,9 @@ export default Vue.extend({
folderId: this.folder ? this.folder.id : undefined
});
this.$dialog({
this.$root.alert({
title: this.$t('url-upload-requested'),
text: this.$t('may-take-time'),
actions: [{
text: this.$t('@.ok')
}]
text: this.$t('may-take-time')
});
});
},