Commit 090cf7ac by David Taylor Committed by GitHub

Merge pull request #43 from jeff-phillips-18/fixes

Don't allow changing the Create button in create-project directive
parents d3c48214 604c2dc6
......@@ -87,7 +87,7 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
" ng-click=\"createProject()\"\n" +
" ng-disabled=\"createProjectForm.$invalid || nameTaken || disableInputs\"\n" +
" value=\"\">\n" +
" {{submitButtonLabel}}\n" +
" Create\n" +
" </button>\n" +
" <button\n" +
" class=\"btn btn-default btn-lg\"\n" +
......@@ -241,17 +241,12 @@ angular.module("openshiftCommonUI")
restrict: 'E',
scope: {
alerts: '=',
submitButtonLabel: '@',
redirectAction: '&',
onCancel: '&?',
isDialog: '@'
},
templateUrl: 'src/components/create-project/createProject.html',
controller: function($scope, $filter, $location, DataService) {
if(!($scope.submitButtonLabel)) {
$scope.submitButtonLabel = 'Create';
}
$scope.isDialog = $scope.isDialog === 'true';
$scope.createProject = function() {
......
......@@ -257,7 +257,7 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
" ng-click=\"createProject()\"\n" +
" ng-disabled=\"createProjectForm.$invalid || nameTaken || disableInputs\"\n" +
" value=\"\">\n" +
" {{submitButtonLabel}}\n" +
" Create\n" +
" </button>\n" +
" <button\n" +
" class=\"btn btn-default btn-lg\"\n" +
......@@ -411,17 +411,12 @@ angular.module("openshiftCommonUI")
restrict: 'E',
scope: {
alerts: '=',
submitButtonLabel: '@',
redirectAction: '&',
onCancel: '&?',
isDialog: '@'
},
templateUrl: 'src/components/create-project/createProject.html',
controller: ["$scope", "$filter", "$location", "DataService", function($scope, $filter, $location, DataService) {
if(!($scope.submitButtonLabel)) {
$scope.submitButtonLabel = 'Create';
}
$scope.isDialog = $scope.isDialog === 'true';
$scope.createProject = function() {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -77,7 +77,7 @@ angular.module('openshiftCommonUI').run(['$templateCache', function($templateCac
" ng-click=\"createProject()\"\n" +
" ng-disabled=\"createProjectForm.$invalid || nameTaken || disableInputs\"\n" +
" value=\"\">\n" +
" {{submitButtonLabel}}\n" +
" Create\n" +
" </button>\n" +
" <button\n" +
" class=\"btn btn-default btn-lg\"\n" +
......
......@@ -73,7 +73,7 @@
ng-click="createProject()"
ng-disabled="createProjectForm.$invalid || nameTaken || disableInputs"
value="">
{{submitButtonLabel}}
Create
</button>
<button
class="btn btn-default btn-lg"
......
......@@ -7,17 +7,12 @@ angular.module("openshiftCommonUI")
restrict: 'E',
scope: {
alerts: '=',
submitButtonLabel: '@',
redirectAction: '&',
onCancel: '&?',
isDialog: '@'
},
templateUrl: 'src/components/create-project/createProject.html',
controller: function($scope, $filter, $location, DataService) {
if(!($scope.submitButtonLabel)) {
$scope.submitButtonLabel = 'Create';
}
$scope.isDialog = $scope.isDialog === 'true';
$scope.createProject = function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment