|
@@ -20,6 +20,9 @@
|
|
angular.module('ambariAdminConsole')
|
|
angular.module('ambariAdminConsole')
|
|
.controller('StackVersionsCreateCtrl', ['$scope', 'Stack', '$routeParams', '$location', 'Alert', '$translate', 'Cluster', function($scope, Stack, $routeParams, $location, Alert, $translate, Cluster) {
|
|
.controller('StackVersionsCreateCtrl', ['$scope', 'Stack', '$routeParams', '$location', 'Alert', '$translate', 'Cluster', function($scope, Stack, $routeParams, $location, Alert, $translate, Cluster) {
|
|
var $t = $translate.instant;
|
|
var $t = $translate.instant;
|
|
|
|
+ $scope.constants = {
|
|
|
|
+ os: $t('versions.os')
|
|
|
|
+ };
|
|
$scope.createController = true;
|
|
$scope.createController = true;
|
|
$scope.osList = [];
|
|
$scope.osList = [];
|
|
$scope.skipValidation = false;
|
|
$scope.skipValidation = false;
|
|
@@ -35,14 +38,14 @@ angular.module('ambariAdminConsole')
|
|
|
|
|
|
$scope.option1 = {
|
|
$scope.option1 = {
|
|
index: 1,
|
|
index: 1,
|
|
- displayName: 'Upload Version Definition File',
|
|
|
|
|
|
+ displayName: $t('versions.uploadFile'),
|
|
file: null,
|
|
file: null,
|
|
hasError: false
|
|
hasError: false
|
|
};
|
|
};
|
|
$scope.option2 = {
|
|
$scope.option2 = {
|
|
index: 2,
|
|
index: 2,
|
|
- displayName: 'Version Definition File URL',
|
|
|
|
- url: 'https://',
|
|
|
|
|
|
+ displayName: $t('versions.enterURL'),
|
|
|
|
+ url: $t('versions.defaultURL'),
|
|
hasError: false
|
|
hasError: false
|
|
};
|
|
};
|
|
$scope.selectedOption = {
|
|
$scope.selectedOption = {
|
|
@@ -102,10 +105,10 @@ angular.module('ambariAdminConsole')
|
|
.then(function (response) {
|
|
.then(function (response) {
|
|
$scope.id = response.id;
|
|
$scope.id = response.id;
|
|
$scope.isPatch = response.type == 'PATCH';
|
|
$scope.isPatch = response.type == 'PATCH';
|
|
- $scope.stackNameVersion = response.stackNameVersion || 'n/a';
|
|
|
|
- $scope.displayName = response.displayName || 'n/a';
|
|
|
|
- $scope.version = response.version || 'n/a';
|
|
|
|
- $scope.actualVersion = response.actualVersion || 'n/a';
|
|
|
|
|
|
+ $scope.stackNameVersion = response.stackNameVersion || $t('common.NA');
|
|
|
|
+ $scope.displayName = response.displayName || $t('common.NA');
|
|
|
|
+ $scope.version = response.version || $t('common.NA');
|
|
|
|
+ $scope.actualVersion = response.actualVersion || $t('common.NA');
|
|
$scope.updateObj = response.updateObj;
|
|
$scope.updateObj = response.updateObj;
|
|
$scope.upgradeStack = {
|
|
$scope.upgradeStack = {
|
|
stack_name: response.stackName,
|
|
stack_name: response.stackName,
|