mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Added draft code for Nextcloud files/folders selector #96
This commit is contained in:
parent
115f603d20
commit
0910b8f27d
2 changed files with 110 additions and 0 deletions
|
|
@ -1,4 +1,12 @@
|
|||
(rl => {
|
||||
|
||||
function browseFiles(path = '/')
|
||||
{
|
||||
rl.ncFiles.getDirectoryContents(path).then(elemList => {
|
||||
console.dir(elemList);
|
||||
}).catch(err => console.error(err))
|
||||
}
|
||||
|
||||
addEventListener('rl-view-model.create', e => {
|
||||
if ('MailMessageView' === e.detail.viewModelTemplateID) {
|
||||
let view = e.detail;
|
||||
|
|
@ -33,6 +41,13 @@
|
|||
|
||||
view.nextcloudSaveMsg = () => {
|
||||
let msg = view.message();
|
||||
|
||||
/**
|
||||
* TODO: op select screen to show browseFiles result
|
||||
* Then the user can select which Nextcloud folder to save to
|
||||
*/
|
||||
browseFiles();
|
||||
|
||||
rl.pluginRemoteRequest(
|
||||
(iError, data) => {
|
||||
console.dir({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue