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",
|
"key": "email",
|
||||||
"title": gettext("Email Address"),
|
"title": gettext("Email Address"),
|
||||||
"placeholder": "owner@example.com",
|
|
||||||
"description": gettext("Email address to contact the zone owner."),
|
"description": gettext("Email address to contact the zone owner."),
|
||||||
"validationMessage": gettext("Email address must contain a single '@' character"),
|
"validationMessage": gettext("Email address must contain a single '@' character"),
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"condition": "model.type == 'PRIMARY'",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -139,6 +139,7 @@
|
|||||||
"title": gettext("TTL"),
|
"title": gettext("TTL"),
|
||||||
"description": gettext("Time To Live in seconds."),
|
"description": gettext("Time To Live in seconds."),
|
||||||
"type": "number",
|
"type": "number",
|
||||||
|
"condition": "model.type == 'PRIMARY'",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -40,6 +40,15 @@
|
|||||||
|
|
||||||
function onGetResponse(response) {
|
function onGetResponse(response) {
|
||||||
ctrl.item = response.data;
|
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