fix: Remove the 'Plan Discarded' Message from the Enable/Disable Apply Commands (#3511)

* Remove `/?discard=true`

* Restore forward slash
This commit is contained in:
Simon Heather
2023-06-11 15:01:08 +01:00
committed by GitHub
parent fa6a77a6ea
commit 7fa9b9c925

View File

@@ -168,7 +168,7 @@ var IndexTemplate = template.Must(template.New("index.html.tmpl").Parse(`
url: '{{ .CleanedBasePath }}/apply/lock',
type: 'POST',
success: function(result) {
window.location.replace("{{ .CleanedBasePath }}/?discard=true");
window.location.replace("{{ .CleanedBasePath }}/");
}
});
});
@@ -185,7 +185,7 @@ var IndexTemplate = template.Must(template.New("index.html.tmpl").Parse(`
url: '{{ .CleanedBasePath }}/apply/unlock',
type: 'DELETE',
success: function(result) {
window.location.replace("{{ .CleanedBasePath }}/?discard=true");
window.location.replace("{{ .CleanedBasePath }}/");
}
});
});