fix setting error

This commit is contained in:
Xuan Sang LE 2018-03-12 23:20:06 +01:00
parent a06d3258f9
commit 7a609e3270
2 changed files with 8 additions and 8 deletions

View File

@ -57,7 +57,7 @@ class BasicDialog extends BaseDialog
html = "<afx-app-window data-id = 'dia-window' width='#{@conf.width}' height='#{@conf.height}'>
<afx-vbox>"
html += "<#{v.tag} #{v.att} style = 'margin-left:5px; margin-right:5px;' data-id = 'content#{k}'></#{v.tag}>" for k,v of @conf.tags
html += "<div data-height = '30' style=' text-align:right;padding-top:3px;'>"
html += "<div data-height = '35' style=' text-align:right;padding-top:3px;'>"
html += "<afx-button data-id = 'bt#{k}' text = '#{v.label}' style='margin-right:5px;'></afx-button>" for k,v of @conf.buttons
html += "</div><div data-height='5'></div></afx-vbox></afx-app-window>"
#render the html
@ -116,7 +116,7 @@ class CalendarDialog extends BasicDialog
super "CalendarDialog", {
tags: [{ tag: 'afx-calendar-view' }],
width: 300,
height: 220,
height: 230,
resizable: false,
buttons: [
{

View File

@ -14,12 +14,12 @@
_OS.setting.desktop.menu = {} unless _OS.setting.desktop.menu
_OS.setting.VFS.mountpoints = [
#TODO: multi app try to write to this object, it neet to be cloned
{ text: __("Applications"), path: 'app://', iconclass: "fa fa-adn", type: "app" },
{ text: __("Home"), path: 'home://', iconclass: "fa fa-home", type: "fs" },
{ text: __("Desktop"), path: _OS.setting.desktop.path , iconclass: "fa fa-desktop", type: "fs" },
{ text: __("OS"), path: 'os://', iconclass: "fa fa-inbox", type: "fs" },
{ text: __("Google Drive"), path: 'gdv://', iconclass: "fa fa-inbox", type: "fs" },
{ text: __("Shared"), path: 'shared://' , iconclass: "fa fa-share-square", type: "fs" }
{ text: "__(Applications)", path: 'app://', iconclass: "fa fa-adn", type: "app" },
{ text: "__(Home)", path: 'home://', iconclass: "fa fa-home", type: "fs" },
{ text: "__Desktop)", path: _OS.setting.desktop.path , iconclass: "fa fa-desktop", type: "fs" },
{ text: "__(OS)", path: 'os://', iconclass: "fa fa-inbox", type: "fs" },
{ text: "__(Google Drive)", path: 'gdv://', iconclass: "fa fa-inbox", type: "fs" },
{ text: "__(Shared)", path: 'shared://' , iconclass: "fa fa-share-square", type: "fs" }
] if not _OS.setting.VFS.mountpoints
_OS.setting.system = conf.system if conf.system