Actually show attribute on zone info page
also fix creating secondary zones Change-Id: I90093d7547f3289141323a315bb779d342e3bbe9
This commit is contained in:
parent
a1abf675bb
commit
ffc60145b8
@ -128,10 +128,10 @@
|
||||
{
|
||||
"key": "email",
|
||||
"title": gettext("Email Address"),
|
||||
"placeholder": "owner@example.com",
|
||||
"description": gettext("Email address to contact the zone owner."),
|
||||
"validationMessage": gettext("Email address must contain a single '@' character"),
|
||||
"type": "text",
|
||||
"condition": "model.type == 'PRIMARY'",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
@ -139,6 +139,7 @@
|
||||
"title": gettext("TTL"),
|
||||
"description": gettext("Time To Live in seconds."),
|
||||
"type": "number",
|
||||
"condition": "model.type == 'PRIMARY'",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
|
@ -40,6 +40,15 @@
|
||||
|
||||
function onGetResponse(response) {
|
||||
ctrl.item = response.data;
|
||||
|
||||
var attr = '';
|
||||
var keys = Object.keys(response.data.attributes);
|
||||
|
||||
for (var i = keys.length - 1; i >= 0; i--) {
|
||||
attr += keys[i] + ':' + response.data.attributes[keys[i]] + ', ';
|
||||
}
|
||||
|
||||
ctrl.item.attributes = attr;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user