mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-08 22:24:14 +08:00
Nextcloud improved save to folder
This commit is contained in:
parent
c1cc8c5060
commit
057bd9d15c
2 changed files with 6 additions and 6 deletions
|
@ -32,6 +32,8 @@
|
|||
view.saveNextcloudLoading(false);
|
||||
view.saveNextcloudError(true);
|
||||
});
|
||||
} else {
|
||||
view.saveNextcloudLoading(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -153,7 +153,6 @@
|
|||
constructor() {
|
||||
super('NextcloudFiles');
|
||||
this.addObservables({
|
||||
folder: '',
|
||||
files: false
|
||||
});
|
||||
}
|
||||
|
@ -164,8 +163,8 @@
|
|||
if (event.target.matches('button')) {
|
||||
let li = event.target.closest('li');
|
||||
if (li.item_name) {
|
||||
this.select = li.item_name;
|
||||
this.close();
|
||||
this.fResolve(li.item_name);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -173,6 +172,7 @@
|
|||
|
||||
// Happens after showModal()
|
||||
beforeShow(files, fResolve) {
|
||||
this.select = '';
|
||||
this.files(!!files);
|
||||
this.fResolve = fResolve;
|
||||
|
||||
|
@ -182,10 +182,8 @@
|
|||
}).catch(err => console.error(err))
|
||||
}
|
||||
|
||||
onClose() {
|
||||
this.close();
|
||||
this.fResolve();
|
||||
return false;
|
||||
onHide() {
|
||||
this.fResolve(this.select);
|
||||
}
|
||||
/*
|
||||
onShow() {} // Happens after showModal()
|
||||
|
|
Loading…
Add table
Reference in a new issue