From 33940e952258bf1026a5f2c0687e4da01bc66004 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Mon, 25 Jan 2016 22:27:29 +0100 Subject: Cosmetic fixes --- .../Frontend/widgets/ActionButtons/AppliButton.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js') diff --git a/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js b/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js index 387212e..50220dd 100644 --- a/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js +++ b/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js @@ -22,18 +22,18 @@ 'use strict'; var tmplAppli = '
' + - '' + + '' + '{{label}}' + '
'; var tmplModal = '×' + - '' + - 'Application {{appname}}' + + '' + + 'Application {{name}}' + '' + ''; @@ -72,7 +72,10 @@ return; } - // Application was stated + // Application was started + elem.addClass ("success"); + elem.removeClass ("fail"); + scope.runID = response.data.response.runid; scope.callback (scope.appliID, "/api/afm-main/start", response); }); break; @@ -94,8 +97,8 @@ contentScope: { action : actionModal, close : closeModal, - appicon : scope.icon, - appname : scope.label, + icon : scope.icon, + label : scope.label }, template : tmplModal }; // Popup Modal to render application data @@ -105,7 +108,7 @@ // extract application information from AppID+Store if (attrs.handle && scope.store [attrs.handle].name) { - scope.icon = AppConfig.paths.icons + scope.store [attrs.handle].name.toLowerCase(); + scope.icon = AppConfig.paths.icons + scope.store [attrs.handle].name.toLowerCase() + '-ico.png'; scope.label = scope.store [attrs.handle].name; scope.appliID= attrs.handle; } else { -- cgit 1.2.3-korg