* Fix a la carte 1 * use dialog instead of alert() etc
This commit is contained in:
parent
ba3879a95a
commit
f966d0b32c
21 changed files with 79 additions and 29 deletions
|
@ -125,7 +125,10 @@ export default Vue.extend({
|
|||
this.form.upload(e.dataTransfer.files[0]);
|
||||
return;
|
||||
} else if (e.dataTransfer.files.length > 1) {
|
||||
alert(this.$t('only-one-file-attached'));
|
||||
this.$root.dialog({
|
||||
type: 'error',
|
||||
text: this.$t('only-one-file-attached')
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue