All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit e791b0f6 authored by Leigh B Stoller's avatar Leigh B Stoller

Use just a close button in the topology view when read-only.

This closes issues #281.
parent 9eca8564
......@@ -1676,6 +1676,14 @@ $(function ()
}
editor = new JacksEditor($('#editmodal_div'),
isViewer, false, false, false, !multisite);
if (isViewer) {
$('#edit_container .edit_buttons.readwrite').addClass("hidden");
$('#edit_container .edit_buttons.readonly').removeClass("hidden");
}
else {
$('#edit_container .edit_buttons.readwrite').removeClass("hidden");
$('#edit_container .edit_buttons.readonly').addClass("hidden");
}
}
function MarkPortalConverted(converted)
......
......@@ -15,10 +15,13 @@
id='edit_container'>
<div class='panel-body'>
<div id='edit_nopicker' class='jacks'></div>
<div class='edit_buttons'>
<div class='edit_buttons readwrite'>
<button id='edit-save' class='btn btn-primary'>Accept</button>
<button id='edit-cancel' class='btn btn-default'>Cancel</button>
</div>
<div class='edit_buttons readonly'">
<button id='edit-dismiss' class='btn btn-default'>Close</button>
</div>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment