wip
This commit is contained in:
parent
138c9868e8
commit
deb3df1536
67 changed files with 229 additions and 229 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.showDialog({
|
||||
const dialog = component.$store.dispatch('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.showDialog({
|
||||
component.$store.dispatch('showDialog', {
|
||||
type: 'error',
|
||||
text: e
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue