Import: Disable cache for folder list #346
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
f8ec76d6c9
commit
7fb04acd51
3 changed files with 7 additions and 3 deletions
|
@ -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 = "/";
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue