Merge pull request #2066 from coreos-inc/select-username

Add support for temp usernames and an interstitial to confirm username
This commit is contained in:
josephschorr 2016-11-03 16:22:16 -04:00 committed by GitHub
commit 233b2be5c2
18 changed files with 388 additions and 24 deletions

View file

@ -11,13 +11,14 @@ angular.module('quay').directive('namespaceInput', function () {
scope: {
'binding': '=binding',
'isBackIncompat': '=isBackIncompat',
'hasExternalError': '=?hasExternalError',
'namespaceTitle': '@namespaceTitle',
},
controller: function($scope, $element) {
$scope.USERNAME_PATTERN = USERNAME_PATTERN;
$scope.usernamePattern = new RegExp(USERNAME_PATTERN);
$scope.$watch('binding', function(binding) {
if (!binding) {
$scope.isBackIncompat = false;