Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI: add support for sub-CAs while revoking certificates and removing certificate hold #31

Closed
wants to merge 3 commits into from

Conversation

pvomacka
Copy link

Revocation dialog has new field for setting a CA and these patches also fix showing details of certificates issued by sub-CAs.

https://fedorahosted.org/freeipa/ticket/6216
https://fedorahosted.org/freeipa/ticket/6238

Pavel Vomacka added 3 commits August 26, 2016 13:54
Sometimes the entity_show command must be called with options which are gathered
from result of entity_find command. These options needs to be passed as
arguments in URL which points to details page.

This functionality is implemented to table facet. There is new property
'additional_navigation_arguments' which is prepared for array of attributes
which will be passed to URL.

Part of: https://fedorahosted.org/freeipa/ticket/6238
The cert-show command needs to be called with cacn option. Cacn option is
passed using URL attribute.

https://fedorahosted.org/freeipa/ticket/6238
@pvoborni
Copy link
Member

pvoborni commented Sep 6, 2016

nack for f72ae94

it needs this update

diff --git a/install/ui/src/freeipa/certificate.js b/install/ui/src/freeipa/certificate.js
index ad7fd87..9ab4002 100755
--- a/install/ui/src/freeipa/certificate.js
+++ b/install/ui/src/freeipa/certificate.js
@@ -268,6 +268,7 @@ IPA.cert.revoke_dialog = function(spec, no_init) {
     spec = spec || {};

     spec.width = spec.width || 500;
+    spec.ok_label = spec.ok_label || '@i18n:buttons.revoke';
     spec.sections = [
         {
             name: 'note',
@@ -308,12 +309,13 @@ IPA.cert.revoke_dialog = function(spec, no_init) {
         }
     ];

-    var that = IPA.dialog(spec);
+    var that = IPA.confirm_dialog(spec);

     that.open = function() {
+
+        that.confirmed = false;
         that.dialog_open();
         that.set_cacn(that.facet.state.cacn);
-
     };

     that.get_reason = function() {
@@ -336,23 +338,6 @@ IPA.cert.revoke_dialog = function(spec, no_init) {
     that.init = function() {
         var note = text.get('@i18n:objects.cert.revoke_confirmation');
         that.widgets.get_widget('note.note').html = note;
-
-        that.create_button({
-            name: 'revoke',
-            label: '@i18n:buttons.revoke',
-            click: function() {
-                that.on_ok();
-                that.close();
-            }
-        });
-
-        that.create_button({
-            name: 'cancel',
-            label: '@i18n:buttons.cancel',
-            click: function() {
-                that.close();
-            }
-        });
     };

ACK for 8622b9f and e874ac9 (#6238)

I'll create new separate pull requests for both #6238 and #6216. So that #6238 can be pushed and aforementioned changes for #6216 reviewed.

@pvoborni
Copy link
Member

pvoborni commented Sep 7, 2016

Obsoleted by pull request #65

@pvoborni pvoborni closed this Sep 7, 2016
@ghost ghost added the rejected Pull Request has been rejected label Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejected Pull Request has been rejected
Projects
None yet
2 participants