Import: Disable cache for folder list #346

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-06-02 16:07:57 +02:00
parent f8ec76d6c9
commit 7fb04acd51
3 changed files with 7 additions and 3 deletions

View file

@ -92,6 +92,10 @@ export class Folder extends RestModel {
return this.search(path, {recursive: true});
}
static findAllUncached(path) {
return this.search(path, {recursive: true, uncached: true});
}
static originals(path, params) {
if(!path) {
path = "/";

View file

@ -26,11 +26,11 @@
</v-tab>
<v-tabs-items touchless>
<v-tab-item>
<v-tab-item lazy>
<p-tab-originals></p-tab-originals>
</v-tab-item>
<v-tab-item :disabled="readonly">
<v-tab-item :disabled="readonly" lazy>
<p-tab-import></p-tab-import>
</v-tab-item>

View file

@ -198,7 +198,7 @@
this.subscriptionId = Event.subscribe('import', this.handleEvent);
this.loading = true;
Folder.findAll(RootImport).then((r) => {
Folder.findAllUncached(RootImport).then((r) => {
const folders = r.models ? r.models : [];
const currentPath = this.settings.import.path;
let found = currentPath === this.root.path;