forked from patternfly/angular-patternfly
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscript.js
More file actions
executable file
·59 lines (50 loc) · 1.59 KB
/
Copy pathscript.js
File metadata and controls
executable file
·59 lines (50 loc) · 1.59 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
angular.module('patternfly.wizard').controller('DetailsGeneralController', ['$rootScope', '$scope',
function ($rootScope, $scope) {
'use strict';
$scope.reviewTemplate = "test/wizard/review-template.html";
$scope.onShow = function() {
$scope.detailsGeneralComplete = false;
};
$scope.updateName = function() {
$scope.detailsGeneralComplete = angular.isDefined($scope.data.name) && $scope.data.name.length > 0;
};
}
]);
angular.module('patternfly.wizard').controller('DetailsReviewController', ['$rootScope', '$scope',
function ($rootScope, $scope) {
'use strict';
// Find the data!
var next = $scope;
while (angular.isUndefined($scope.data)) {
next = next.$parent;
if (angular.isUndefined(next)) {
$scope.data = {};
} else {
$scope.data = next.wizardData;
}
}
}
]);
angular.module('patternfly.wizard').controller('SummaryController', ['$rootScope', '$scope', '$timeout',
function ($rootScope, $scope, $timeout) {
'use strict';
$scope.pageShown = false;
$scope.onShow = function () {
$scope.pageShown = true;
$timeout(function () {
$scope.pageShown = false; // done so the next time the page is shown it updates
});
}
}
]);
angular.module('patternfly.wizard').controller('DeploymentController', ['$rootScope', '$scope', '$timeout',
function ($rootScope, $scope, $timeout) {
'use strict';
$scope.onShow = function() {
$scope.deploymentComplete = false;
$timeout(function() {
$scope.deploymentComplete = true;
}, 2500);
};
}
]);