
- Update back buttons - Ignore duplicated README.md - Rename /minions to /nodes - Deactivate more buttons - Updates to list selection and node detail page
28 lines
1.1 KiB
JavaScript
28 lines
1.1 KiB
JavaScript
/**=========================================================
|
|
* Module: Header
|
|
* Visualizer for clusters
|
|
=========================================================*/
|
|
|
|
angular.module('kubernetesApp.components.dashboard', [])
|
|
.controller('HeaderCtrl', [
|
|
'$scope',
|
|
'$location',
|
|
function($scope, $location) {
|
|
'use strict';
|
|
$scope.$watch('Pages', function(newValue, oldValue) {
|
|
if (typeof newValue !== 'undefined') {
|
|
$location.path(newValue);
|
|
}
|
|
});
|
|
|
|
$scope.subPages = [
|
|
{category: 'dashboard', name: 'Explore', value: '/dashboard/groups/type/selector/'},
|
|
{category: 'dashboard', name: 'Pods', value: '/dashboard/pods'},
|
|
{category: 'dashboard', name: 'Nodes', value: '/dashboard/nodes'},
|
|
{category: 'dashboard', name: 'Replication Controllers', value: '/dashboard/replicationcontrollers'},
|
|
{category: 'dashboard', name: 'Services', value: '/dashboard/services'},
|
|
{category: 'dashboard', name: 'Events', value: '/dashboard/events'}
|
|
];
|
|
}
|
|
]);
|