mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed certificate buttons.
The certificate buttons including Get, View, Revoke, Restore for hosts and services have been fixed to use the correct entity name. Ticket #1556
This commit is contained in:
committed by
Adam Young
parent
6f6679e348
commit
4c9359ab62
@@ -371,7 +371,7 @@ IPA.cert.status_widget = function(spec) {
|
||||
|
||||
var that = IPA.widget(spec);
|
||||
|
||||
that.entity_label = spec.entity_label || that.entity_name;
|
||||
that.entity_label = spec.entity_label || that.entity.metadata.label_singular;
|
||||
|
||||
that.result = spec.result;
|
||||
|
||||
@@ -516,7 +516,7 @@ IPA.cert.status_widget = function(spec) {
|
||||
label: IPA.messages.buttons.get,
|
||||
click: function() {
|
||||
IPA.command({
|
||||
entity: that.entity_name,
|
||||
entity: that.entity.name,
|
||||
method: 'show',
|
||||
args: [that.pkey],
|
||||
on_success: function(data, text_status, xhr) {
|
||||
@@ -534,7 +534,7 @@ IPA.cert.status_widget = function(spec) {
|
||||
label: IPA.messages.buttons.revoke,
|
||||
click: function() {
|
||||
IPA.command({
|
||||
entity: that.entity_name,
|
||||
entity: that.entity.name,
|
||||
method: 'show',
|
||||
args: [that.pkey],
|
||||
on_success: function(data, text_status, xhr) {
|
||||
@@ -552,7 +552,7 @@ IPA.cert.status_widget = function(spec) {
|
||||
label: IPA.messages.buttons.view,
|
||||
click: function() {
|
||||
IPA.command({
|
||||
entity: that.entity_name,
|
||||
entity: that.entity.name,
|
||||
method: 'show',
|
||||
args: [that.pkey],
|
||||
on_success: function(data, text_status, xhr) {
|
||||
@@ -572,7 +572,7 @@ IPA.cert.status_widget = function(spec) {
|
||||
label: IPA.messages.buttons.restore,
|
||||
click: function() {
|
||||
IPA.command({
|
||||
entity: that.entity_name,
|
||||
entity: that.entity.name,
|
||||
method: 'show',
|
||||
args: [that.pkey],
|
||||
on_success: function(data, text_status, xhr) {
|
||||
|
||||
@@ -432,9 +432,6 @@ IPA.host_certificate_status_widget = function (spec) {
|
||||
|
||||
var that = IPA.cert.status_widget(spec);
|
||||
|
||||
|
||||
that.entity_label = that.entity.metadata.label_singular;
|
||||
|
||||
that.get_entity_pkey = function(result) {
|
||||
var values = result['fqdn'];
|
||||
return values ? values[0] : null;
|
||||
|
||||
@@ -319,9 +319,6 @@ IPA.service_certificate_status_widget = function (spec) {
|
||||
|
||||
var that = IPA.cert.status_widget(spec);
|
||||
|
||||
|
||||
that.entity_label = that.entity.metadata.label_singular;
|
||||
|
||||
that.get_entity_pkey = function(result) {
|
||||
var values = result['krbprincipalname'];
|
||||
return values ? values[0] : null;
|
||||
|
||||
Reference in New Issue
Block a user