mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-25 02:09:50 +02:00
update docify
This commit is contained in:
@ -251,7 +251,7 @@ class FilePreviewDialog extends this.OS.GUI.BasicDialog
|
||||
.then (d) =>
|
||||
return @error d.error if d.error
|
||||
v.text = v.filename for v in d.result
|
||||
@flist.data = d.result
|
||||
@flist.data = (v for v in d.result when v.filename[0] isnt '.')
|
||||
.catch (e) =>
|
||||
@error __("Unable to fetch unclassified file list: {0}", e.toString()), e
|
||||
|
||||
|
@ -193,6 +193,8 @@ class Docify extends this.OS.application.BaseApplication
|
||||
@error e.toString(), e
|
||||
|
||||
cat_refresh: () ->
|
||||
@docview.data = []
|
||||
@clear_preview()
|
||||
@exec("fetch", "categories")
|
||||
.then (d) =>
|
||||
v.text = v.name for v in d.result
|
||||
@ -239,8 +241,9 @@ class Docify extends this.OS.application.BaseApplication
|
||||
{
|
||||
text: "__(View)",
|
||||
nodes: [
|
||||
{ text: "__(Owners)", id:"owners", shortcut: "A-O"},
|
||||
{ text: "__(Preview)", id:"preview", shortcut: "A-P"}
|
||||
{ text: "__(Owners)", id:"owners"},
|
||||
{ text: "__(Preview)", id:"preview"},
|
||||
{ text: "__(Change doc path)", id:"setdocp"}
|
||||
],
|
||||
onchildselect: (e) => @fileMenuHandle e.data.item.data.id
|
||||
}
|
||||
@ -254,5 +257,8 @@ class Docify extends this.OS.application.BaseApplication
|
||||
@openDialog(new FilePreviewDialog())
|
||||
.then (d) =>
|
||||
@notify d.path
|
||||
when "setdocp"
|
||||
@setting.docpath = undefined
|
||||
@initialize()
|
||||
|
||||
this.OS.register "Docify", Docify
|
Reference in New Issue
Block a user