Indexer: Show folder names while indexing

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-12-09 00:07:11 +01:00
parent ccdd048c47
commit 5096e6201d
3 changed files with 13 additions and 1 deletions

View File

@ -163,6 +163,12 @@
const type = ev.split('.')[1];
switch (type) {
case "folder":
this.action = this.$gettext("Indexing");
this.busy = true;
this.completed = 0;
this.fileName = data.filePath;
break;
case "indexing":
this.action = this.$gettext("Indexing");
this.busy = true;

View File

@ -135,7 +135,7 @@ export default [
path: "/folders",
component: Albums,
meta: {title: $gettext("Folders"), auth: true},
props: {view: "folder", staticFilter: {type: "folder"}},
props: {view: "folder", staticFilter: {type: "folder", order: "slug"}},
},
{
name: "folder",

View File

@ -142,6 +142,12 @@ func (ind *Index) Start(opt IndexOptions) fs.Done {
}
}
if isDir {
event.Publish("index.folder", event.Data{
"filePath": relName,
})
}
return result
}