16 lines
459 B
JavaScript
16 lines
459 B
JavaScript
'use strict';
|
|
|
|
angular.module('bansho.table')
|
|
|
|
.controller('CellConfigHostRegisterCtrl', ['$scope', function ($scope) {
|
|
if ($scope.register === 0) {
|
|
$scope.activityClass = 'fa-times-circle-o';
|
|
} else {
|
|
$scope.activityClass = 'fa-check-circle-o';
|
|
}
|
|
}])
|
|
|
|
.run(['tableGlobalConfig', function (tableGlobalConfig) {
|
|
tableGlobalConfig.cellToFieldsMap.config_host_register = ['register'];
|
|
}]);
|