diff --git a/static/directives/global-message-tab.html b/static/directives/global-message-tab.html index 50c6face6..0ec26aabf 100644 --- a/static/directives/global-message-tab.html +++ b/static/directives/global-message-tab.html @@ -19,7 +19,7 @@ - + {{ message.content }} @@ -81,7 +81,10 @@ -
+ -
+ Enter optional notes for additional human-readable information about why the keys were approved. @@ -268,7 +271,10 @@
Approve service key {{ getKeyTitle(approvalKeyInfo.key) }}?
-
+ Enter optional notes for additional human-readable information about why the key was approved. @@ -344,7 +350,10 @@ -
+ Optional notes for additional human-readable information about why the key was added. diff --git a/static/js/directives/ui/global-message-tab.js b/static/js/directives/ui/global-message-tab.js index e0534cd2f..8f4ac572b 100644 --- a/static/js/directives/ui/global-message-tab.js +++ b/static/js/directives/ui/global-message-tab.js @@ -38,15 +38,15 @@ angular.module('quay').directive('globalMessageTab', function () { ApiService.createGlobalMessage(data, null).then(function (resp) { $scope.creatingMessage = false; - $scope.newMessage = { - 'media_type': 'text/markdown', - 'severity': 'info' - }; $('#createMessageModal').modal('hide'); $scope.loadMessageInternal(); }, errorHandler) }; + + $scope.updateMessage = function(content) { + $scope.newMessage.content = content; + }; $scope.showDeleteMessage = function (uuid) { $scope.messageToDelete = uuid; diff --git a/static/js/directives/ui/request-service-key-dialog.js b/static/js/directives/ui/request-service-key-dialog.js index 9c0ed1320..bd3351567 100644 --- a/static/js/directives/ui/request-service-key-dialog.js +++ b/static/js/directives/ui/request-service-key-dialog.js @@ -108,6 +108,10 @@ angular.module('quay').directive('requestServiceKeyDialog', function () { $scope.keyCreated({'key': resp}); }, ApiService.errorDisplay('Could not create service key')); }; + + $scope.updateNotes = function(content) { + $scope.preshared.notes = content; + }; $scope.$watch('requestKeyInfo', function(info) { if (info && info.service) { diff --git a/static/js/directives/ui/search-box/search-box.component.html b/static/js/directives/ui/search-box/search-box.component.html index 69495614a..48d756197 100644 --- a/static/js/directives/ui/search-box/search-box.component.html +++ b/static/js/directives/ui/search-box/search-box.component.html @@ -31,8 +31,11 @@ {{ result.namespace.name }}/{{ result.name }}
-
+
+ +
diff --git a/static/js/directives/ui/service-keys-manager.js b/static/js/directives/ui/service-keys-manager.js index 97a265194..d6a4da38f 100644 --- a/static/js/directives/ui/service-keys-manager.js +++ b/static/js/directives/ui/service-keys-manager.js @@ -168,6 +168,10 @@ angular.module('quay').directive('serviceKeysManager', function () { loadServiceKeys(); }, ApiService.errorDisplay('Could not create service key')); }; + + $scope.updateNewKeyNotes = function(content) { + $scope.newKey.notes = content; + }; $scope.showApproveKey = function(key) { $scope.approvalKeyInfo = { @@ -195,6 +199,10 @@ angular.module('quay').directive('serviceKeysManager', function () { callback(true); }, errorHandler); }; + + $scope.updateApprovalKeyInfoNotes = function(content) { + $scope.approvalKeyInfo.notes = content; + }; $scope.showCreateKey = function() { $scope.newKey = { @@ -351,7 +359,11 @@ angular.module('quay').directive('serviceKeysManager', function () { forAllKeys(info.keys, 'Could not approve service key', performer, callback); }; - + + $scope.updateApproveKeysInfoNotes = function(content) { + $scope.approveKeysInfo.notes = content; + }; + $scope.changeKeysExpiration = function(info, callback) { var performer = function(key) { var data = {