mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cloudStack - router page - add "Is redundant router" row.
This commit is contained in:
parent
962c966937
commit
62076cbf47
@ -208,6 +208,18 @@ dictionary = {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_rows even">
|
||||||
|
<div class="grid_row_cell" style="width: 20%;">
|
||||||
|
<div class="row_celltitles">
|
||||||
|
<fmt:message key="label.is.redundant.router"/>:</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid_row_cell" style="width: 79%;">
|
||||||
|
<div class="row_celltitles" id="isredundantrouter">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -182,7 +182,13 @@ function routerJsonToDetailsTab() {
|
|||||||
$thisTab.find("#networkdomain").text(fromdb(jsonObj.networkdomain));
|
$thisTab.find("#networkdomain").text(fromdb(jsonObj.networkdomain));
|
||||||
$thisTab.find("#domain").text(fromdb(jsonObj.domain));
|
$thisTab.find("#domain").text(fromdb(jsonObj.domain));
|
||||||
$thisTab.find("#account").text(fromdb(jsonObj.account));
|
$thisTab.find("#account").text(fromdb(jsonObj.account));
|
||||||
setDateField(jsonObj.created, $thisTab.find("#created"));
|
setDateField(jsonObj.created, $thisTab.find("#created"));
|
||||||
|
|
||||||
|
setBooleanReadField(jsonObj.isredundantrouter, $thisTab.find("#isredundantrouter"));
|
||||||
|
if(jsonObj.isredundantrouter == true) {
|
||||||
|
var t = $thisTab.find("#isredundantrouter").text()+ " (" + fromdb(jsonObj.redundantstate) + ")";
|
||||||
|
$thisTab.find("#isredundantrouter").text(t);
|
||||||
|
}
|
||||||
|
|
||||||
resetViewConsoleAction(jsonObj, $thisTab);
|
resetViewConsoleAction(jsonObj, $thisTab);
|
||||||
|
|
||||||
@ -231,7 +237,9 @@ function routerClearDetailsTab() {
|
|||||||
$thisTab.find("#networkdomain").text("");
|
$thisTab.find("#networkdomain").text("");
|
||||||
$thisTab.find("#domain").text("");
|
$thisTab.find("#domain").text("");
|
||||||
$thisTab.find("#account").text("");
|
$thisTab.find("#account").text("");
|
||||||
$thisTab.find("#created").text("");
|
$thisTab.find("#created").text("");
|
||||||
|
$thisTab.find("#isredundantrouter").text("");
|
||||||
|
|
||||||
resetViewConsoleAction(null, $thisTab);
|
resetViewConsoleAction(null, $thisTab);
|
||||||
|
|
||||||
var $actionMenu = $("#right_panel_content #tab_content_details #action_link #action_menu");
|
var $actionMenu = $("#right_panel_content #tab_content_details #action_link #action_menu");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user