bansho/app/components/custom_directive/table/cell_config_host_register/cell_config_host_register.js

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'];
}]);