wip
This commit is contained in:
parent
190486d841
commit
c399e3151e
73 changed files with 329 additions and 254 deletions
|
|
@ -10,7 +10,7 @@ export function selectFile(component: any, src: any, label: string | null, multi
|
|||
input.type = 'file';
|
||||
input.multiple = multiple;
|
||||
input.onchange = () => {
|
||||
const dialog = component.$root.dialog({
|
||||
const dialog = component.$root.showDialog({
|
||||
type: 'waiting',
|
||||
text: component.$t('uploading') + '...',
|
||||
showOkButton: false,
|
||||
|
|
@ -35,7 +35,7 @@ export function selectFile(component: any, src: any, label: string | null, multi
|
|||
Promise.all(promises).then(driveFiles => {
|
||||
res(multiple ? driveFiles : driveFiles[0]);
|
||||
}).catch(e => {
|
||||
component.$root.dialog({
|
||||
component.$root.showDialog({
|
||||
type: 'error',
|
||||
text: e
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue