summaryrefslogtreecommitdiffstats
path: root/base/tps-tomcat/shared/webapps/tps/js/token.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2014-08-15 15:16:31 -0400
committerEndi S. Dewata <edewata@redhat.com>2014-08-15 19:17:47 -0400
commite749dad93d9d203a86ef7c2b35b106c2c3f68c21 (patch)
tree397fee6270aacf367e22cb91e87843296bc245ba /base/tps-tomcat/shared/webapps/tps/js/token.js
parent729c60539b43efa17cc54553b9589aece509cffa (diff)
downloadpki-e749dad93d9d203a86ef7c2b35b106c2c3f68c21.tar.gz
pki-e749dad93d9d203a86ef7c2b35b106c2c3f68c21.tar.xz
pki-e749dad93d9d203a86ef7c2b35b106c2c3f68c21.zip
Fixed missing TPS token attributes.
The missing token policy attribute has been added to token database. The REST services, CLI, and UI have been fixed accordingly. Other missing attributes in tokenRecord object class are unused. Ticket #1085
Diffstat (limited to 'base/tps-tomcat/shared/webapps/tps/js/token.js')
-rw-r--r--base/tps-tomcat/shared/webapps/tps/js/token.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/tps-tomcat/shared/webapps/tps/js/token.js b/base/tps-tomcat/shared/webapps/tps/js/token.js
index 085003a1e..2ea17714e 100644
--- a/base/tps-tomcat/shared/webapps/tps/js/token.js
+++ b/base/tps-tomcat/shared/webapps/tps/js/token.js
@@ -40,6 +40,7 @@ var TokenModel = Model.extend({
statusLabel: TokenStatus[response.Status],
appletID: response.AppletID,
keyInfo: response.KeyInfo,
+ policy: response.Policy,
createTimestamp: response.CreateTimestamp,
modifyTimestamp: response.ModifyTimestamp
};
@@ -53,6 +54,7 @@ var TokenModel = Model.extend({
Status: attributes.status,
AppletID: attributes.appletID,
KeyInfo: attributes.keyInfo,
+ Policy: attributes.policy,
CreateTimestamp: attributes.createTimestamp,
ModifyTimestamp: attributes.modifyTimestamp
};
@@ -91,6 +93,7 @@ var TokenCollection = Collection.extend({
statusLabel: TokenStatus[entry.Status],
appletID: entry.AppletID,
keyInfo: entry.KeyInfo,
+ policy: entry.Policy,
createTimestamp: entry.CreateTimestamp,
modifyTimestamp: entry.ModifyTimestamp
});
@@ -191,7 +194,8 @@ var TokenTableItem = TableItem.extend({
el: $("#token-status-dialog"),
title: "Change Token Status",
readonly: ["tokenID", "userID", "type",
- "appletID", "keyInfo", "createTimestamp", "modifyTimestamp"],
+ "appletID", "keyInfo", "policy",
+ "createTimestamp", "modifyTimestamp"],
actions: ["cancel", "save"]
});