Added name for dock icons in the footer to easily identify which is which

This commit is contained in:
Bryan Chauvin
2019-09-12 10:49:40 -05:00
parent 22b241055b
commit 332e588081
2 changed files with 4 additions and 2 deletions

View File

@@ -213,11 +213,13 @@ angular.module('app')
this.reloadDockShortcuts = function() {
let shortcuts = [];
for(var theme of this.themesWithIcons) {
var name = theme.content.package_info.name;
var icon = theme.content.package_info.dock_icon;
if(!icon) {
continue;
}
shortcuts.push({
name: name,
component: theme,
icon: icon
})

View File

@@ -53,9 +53,9 @@
.sk-app-bar-item.dock-shortcut{"ng-repeat" => "shortcut in ctrl.dockShortcuts"}
.sk-app-bar-item-column{"ng-click" => "ctrl.selectShortcut(shortcut)", "ng-class" => "{'underline': shortcut.component.active}"}
.div{"ng-if" => "shortcut.icon.type == 'circle'"}
.div{"ng-if" => "shortcut.icon.type == 'circle'", "title" => "{{shortcut.name}}"}
.sk-circle.small{"ng-style" => "{'background-color': shortcut.icon.background_color, 'border-color': shortcut.icon.border_color}"}
.div{"ng-if" => "shortcut.icon.type == 'svg'"}
.div{"ng-if" => "shortcut.icon.type == 'svg'", "title" => "{{shortcut.name}}"}
.svg-item{"ng-attr-id" => "dock-svg-{{shortcut.component.uuid}}", "elem-ready" => "ctrl.initSvgForShortcut(shortcut)"}
.sk-app-bar-item.border{"ng-if" => "ctrl.hasPasscode()"}