packages/angularjs-workorder/lib/workorder-detail/workorder-detail-controller.js
function WorkorderDetailController($state, WORKORDER_CONFIG, workorderStatusService) {
  var self = this;

  self.adminMode = WORKORDER_CONFIG.adminMode;

  self.getColorIcon = function(status) {
    return workorderStatusService.getStatusIconColor(status).statusColor;
  };
}
function WorkorderDetailController($state, WORKORDER_CONFIG, workorderStatusService) {
  var self = this;

  self.adminMode = WORKORDER_CONFIG.adminMode;

  self.getColorIcon = function(status) {
    return workorderStatusService.getStatusIconColor(status).statusColor;
  };
}
function WorkorderDetailController ( $state , WORKORDER_CONFIG , workorderStatusService ) { var self = this ; self . adminMode = WORKORDER_CONFIG . adminMode ; self . getColorIcon = function ( status ) { return workorderStatusService . getStatusIconColor ( status ) . statusColor ; } ; }
Controller for displaying workorder details to the user.
@param WORKORDER_CONFIG
@constructor
Controller for displaying workorder details to the user .