Rename tabs to panels in watcher panels

pull/3860/head
Alex Dik 9 years ago
parent ef51410f47
commit 5ac1925879
  1. 4
      frontend/app/components/panels/controllers/watchers-panel.controller.js
  2. 6
      frontend/app/components/panels/controllers/watchers-panel.controller.test.js
  3. 0
      frontend/app/components/panels/directives/watchers-panel.directive.html
  4. 4
      frontend/app/components/panels/directives/watchers-panel.directive.js
  5. 0
      frontend/app/components/routes/partials/panels/watchers.html
  6. 4
      frontend/app/routing.js

@ -28,9 +28,9 @@
angular
.module('openproject.workPackages.controllers')
.controller('WatchersTabController', WatchersTabController);
.controller('WatchersPanelController', WatchersPanelController);
function WatchersTabController($scope, WatchersService) {
function WatchersPanelController($scope, WatchersService) {
var vm = this,
fetchWatchers = function(loading) {
vm.error = false;

@ -28,7 +28,7 @@
/*jshint expr: true*/
describe('WatchersTabController', function() {
describe('WatchersPanelController', function() {
'use strict';
beforeEach(angular.mock.module('openproject.workPackages.controllers'));
@ -61,7 +61,7 @@ describe('WatchersTabController', function() {
};
locals.$scope.workPackage = workPackage;
expect($controller('WatchersTabController', locals)).to.exist;
expect($controller('WatchersPanelController', locals)).to.exist;
});
it('should not work without a work workPackage', function() {
@ -70,7 +70,7 @@ describe('WatchersTabController', function() {
};
expect(function() {
$controller('WatchersTabController', locals);
$controller('WatchersPanelController', locals);
}).to.throw;
});
});

@ -33,9 +33,9 @@ angular
function watchersPanel() {
return {
restrict: 'E',
templateUrl: '/components/panels/directives/watchers-tab.directive.html',
templateUrl: '/components/panels/directives/watchers-panel.directive.html',
controller: 'WatchersTabController',
controller: 'WatchersPanelController',
controllerAs: 'watchers'
}
}

@ -140,7 +140,7 @@ angular.module('openproject')
})
.state('work-packages.show.watchers', {
url: '/watchers',
templateUrl: '/components/routes/partials/tabs/watchers.html'
templateUrl: '/components/routes/partials/panels/watchers.html'
})
.state('work-packages.list', {
@ -204,7 +204,7 @@ angular.module('openproject')
})
.state('work-packages.list.details.watchers', {
url: '/watchers',
templateUrl: '/components/routes/partials/tabs/watchers.html'
templateUrl: '/components/routes/partials/panels/watchers.html'
});
}])

Loading…
Cancel
Save