From b3579a54dd8ff99a0b6d9c4f239a14db99a47b67 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Mon, 25 Jul 2016 10:21:54 +0000 Subject: [PATCH] SSDM-3870 : User Manager + Experimental step icons SVN: 36834 --- .../html/js/views/SideMenu/SideMenuWidgetView.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js index 0bb47024e9c..3684ad66378 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js @@ -247,7 +247,7 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) { } if(profile.mainMenu.showUserManager) { - treeModelUtils.push({ title : "User Manager", entityType: "USER_MANAGER", key : "USER_MANAGER", folder : false, lazy : false, view : "showUserManagerPage" }); + treeModelUtils.push({ title : "User Manager", entityType: "USER_MANAGER", key : "USER_MANAGER", folder : false, lazy : false, view : "showUserManagerPage", icon : "fa fa-users" }); } if(profile.mainMenu.showTrashcan) { @@ -355,7 +355,12 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) { if(sample.properties && sample.properties[profile.propertyReplacingCode]) { sampleDisplayName = sample.properties[profile.propertyReplacingCode]; } - results.push({ title : sampleDisplayName, entityType: "SAMPLE", key : sample.getPermId().getPermId(), folder : true, lazy : true, view : "showViewSamplePageFromPermId", viewData: sample.getPermId().getPermId() }); + + var sampleNode = { title : sampleDisplayName, entityType: "SAMPLE", key : sample.getPermId().getPermId(), folder : true, lazy : true, view : "showViewSamplePageFromPermId", viewData: sample.getPermId().getPermId() }; + if(sample.getType().getCode() === "EXPERIMENTAL_STEP") { + sampleNode.icon = "fa fa-flask"; + } + results.push(sampleNode); } } -- GitLab