Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Use % sign as default for dimmer items (#3525)
Browse files Browse the repository at this point in the history
* Use % sign as default for dimmer items

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
  • Loading branch information
aounhaider1 authored and kaikreuzer committed May 26, 2017
1 parent 252b6b7 commit d5c0398
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ angular.module('PaperUI.services').factory('util', function($filter, dateTime) {
return $filter('date')(date, "dd.MM.yyyy HH:mm:ss");
}
} else if (!item.stateDescription || !item.stateDescription.pattern) {
if (item.type && item.type.toUpperCase() == "DIMMER") {
state += " %";
}
return state;
} else {
return sprintf(item.stateDescription.pattern, state);
Expand Down

0 comments on commit d5c0398

Please sign in to comment.