forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlandingPage.js
32 lines (27 loc) · 931 Bytes
/
landingPage.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict';
angular.module('openshiftConsole')
.controller('LandingPageController',
function($scope,
AuthService,
Constants,
DataService,
Navigate) {
$scope.saasOfferings = Constants.SAAS_OFFERINGS;
$scope.navToProject = function(project) {
Navigate.toProjectOverview(project.metadata.name);
};
$scope.navToProjectList = function() {
Navigate.toProjectList();
};
AuthService.withUser().then(function() {
DataService.list({
group: 'servicecatalog.k8s.io',
resource: 'serviceclasses'
}, $scope).then(function(resp) {
$scope.serviceClasses = resp.by('metadata.name');
});
DataService.list('imagestreams', { namespace: 'openshift' }).then(function(resp) {
$scope.imageStreams = resp.by('metadata.name');
});
});
});