Merge pull request #23741 from ufundo/entitybatchcurrency
[civicrm-core.git] / ang / crmQueueMonitor.js
1 (function (angular, $, _) {
2 "use strict";
3
4 console.log('init crmQueueMonitor module');
5 angular.module('crmQueueMonitor', CRM.angRequires('crmQueueMonitor'));
6
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>',
13 bindings: {
14 queue: '<'
15 },
16 controller: function($scope) {
17 var ts = $scope.ts = CRM.ts(null),
18 ctrl = this;
19
20 console.log('init crmQueueMonitor component for ', ctrl.queue);
21
22 // this.$onInit = function() {
23 // };
24 }
25 });
26
27 })(angular, CRM.$, CRM._);