Commit 93317ba0 authored by Michael Seaholm's avatar Michael Seaholm

Merge branch 'feature/mtc-1341' of into release

parents 76afa573 5bba6f08
......@@ -198,11 +198,32 @@ function isCollection(path){
module.exports.deactivate=function(baseUrl, blProxyPrefix){
var $dialog = buildDialog({
saveText: "Deactivate Page"
var $dialogBody = $dialog.find(".modal-content");
var titleBar=$dialog.titleBar("Deactivate");
var html=[titleBar,
<div class="row">
<div class="col s12" style="margin:24px; width:calc(100% - 48px);">
html.push("<h5>Dectivate this page?</h5>");
$dialogBody.html(html.join(" "));
// if this is a collection item, then after deactivation show a list of stubs which could be deactivated
activateOrDeactivate("Deactivate", [baseUrl], blProxyPrefix, (err)=>{
if(err){Materialize.toast("Error deactivating. See web console for details."); console.error("Error deactivating " + baseUrl, err); return;}
Materialize.toast("Page deactivation successful", 4000, "rounded")
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