Indexer: Show folder names while indexing
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
ccdd048c47
commit
5096e6201d
|
@ -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;
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -142,6 +142,12 @@ func (ind *Index) Start(opt IndexOptions) fs.Done {
|
|||
}
|
||||
}
|
||||
|
||||
if isDir {
|
||||
event.Publish("index.folder", event.Data{
|
||||
"filePath": relName,
|
||||
})
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user