From 8ab41c4e208fed0c2e85cd1ee5c1ed66950fc07a Mon Sep 17 00:00:00 2001 From: charithag Date: Mon, 21 Dec 2015 15:27:53 +0530 Subject: [PATCH] Add custom operation icons --- .../public/images/operations/restart-display.png | Bin 0 -> 2387 bytes .../images/operations/shutdown-display.png | Bin 0 -> 1970 bytes .../operation-bar.hbs | 6 +++++- .../operation-bar.js | 3 +-- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.digital_display.type-view/public/images/operations/restart-display.png create mode 100644 features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.digital_display.type-view/public/images/operations/shutdown-display.png diff --git a/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.digital_display.type-view/public/images/operations/restart-display.png b/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.digital_display.type-view/public/images/operations/restart-display.png new file mode 100644 index 0000000000000000000000000000000000000000..cf95377b727520c82ee67405cbf39ad6b2aa0be7 GIT binary patch literal 2387 zcmZ`*dpOgL7yoXnVGWaFk;@`?q7=(*t|3O|I@e8B2<3jaYPt|f(p-j>F{HT+6VfY` zh>UVgbfMgG2}!Hp-rxW4`R8*!=lML(d7g95bI!Txh&?3?lY#*NAZ%l8;RFC6z6$~b zcky8}!EXrwgrsaNOr2vvi~n5a#{hB(uR^i{{IC1pMonrF&8=(|)&Db=aAfAnMKLq7 zdNcSi;-4n^Q)mBJou%^%*^)R&vsDRQ?S^U&MxL8xX1%{lceGO8Vu;;yc-$Q&3CXu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MjxILDK2Dz7rM96T=WNhCzeGga2UHAZit#UnKy@U2 zmOCAC?_{8{XubwNT`Wy=>&&;vri2_7D28#eIQztl_sf@vfIWTEd^t<$`YmU^=-aLJ zl1(ll{mh?qBxXozT0ko|agY5aDxXySuoqVx^GW%ls(SaXlAgzd`m=b}I}sxAx@tVJ zA)CZv;hC3_nA6C`Vy{E0YqIP6+lPomAg5*M;9OAB-)~yd40kL(>evhSkcOg>z748) zCxAcQ(9>PTUGs@7W@MgjD`Zz4ojUs#-;ZB6R6r4dH}5p9qz{$HEp2_5*xua_GWp+nKenzAa9<}tXMER~Cj^T7E^D26yw%a$S pssH{pge)G;lc-#S`0pnNcm{eAx7W(Jf`j~5WMhf7cx>i(<$nwxJTd?P literal 0 HcmV?d00001 diff --git a/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.digital_display.type-view/public/images/operations/shutdown-display.png b/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.digital_display.type-view/public/images/operations/shutdown-display.png new file mode 100644 index 0000000000000000000000000000000000000000..806c39f5bb4437372979dad164c880058c7f24db GIT binary patch literal 1970 zcma)7`#Tc~7-rMVWj5wAD@77QPH0$SW{V-0Qq8mq5p$bcXhSP1iIhes<}TM}WQl~_ zW4hU?h!(M7xt61JtKDG0#{cSN$ge*+AX z%#Qn+A(931b8*B;ZT{|}rxn=}Mvm&_9W5oL0RIhXseAbd2`L*xIE}qZzEiw6jML-hnxr{npNQwv~tSJ1mr8HFvEaOpQX9ysFOI%@`Q%^{FeL_W)t(OZ|O?Ch`PA{2J8E&#b& zII^-4rg^pxffLOEX{YDs60iWr78JW9|K^Qa9oUi4sLU~iUCViaAEU;yXxc;)`_@ zfbEMUpw7tQ=TTjIf$20QJz;-{Qg=URY=Y{{=_d2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/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation-bar/operation-bar.js b/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation-bar/operation-bar.js index 0f8b869dd6..041e6bf27c 100644 --- a/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation-bar/operation-bar.js +++ b/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation-bar/operation-bar.js @@ -17,10 +17,9 @@ */ function onRequest(context) { - var log = new Log("operation.js"); + //var log = new Log("operation.js"); var operationModule = require("/app/modules/operation.js").operationModule; var device = context.unit.params.device; - log.info(device); var control_operations = operationModule.getControlOperations(device.type); return {"control_operations": control_operations, "device": device}; } \ No newline at end of file