1 (function (angular
, $, _
) {
4 console
.log('init crmQueueMonitor module');
5 angular
.module('crmQueueMonitor', CRM
.angRequires('crmQueueMonitor'));
7 // "crmQueueMonitor" displays the status of a queue
8 // Example usage: <div crm-queue-monitor queue="foobar"></div>
9 // If "queue" is omitted, then inherit `CRM.vars.crmQueueMonitor.default`.
10 angular
.module('crmQueueMonitor').component('crmQueueMonitor', {
11 // templateUrl: '~/crmQueueMonitor/Monitor.html',
12 template
: '<div>TODO: Monitor "{{$ctrl.queue}}"</div>',
16 controller: function($scope
) {
17 var ts
= $scope
.ts
= CRM
.ts(null),
20 console
.log('init crmQueueMonitor component for ', ctrl
.queue
);
22 // this.$onInit = function() {
27 })(angular
, CRM
.$, CRM
._
);