Skip to content

Commit

Permalink
fix: Remove the 'Plan Discarded' Message from the Enable/Disable Appl…
Browse files Browse the repository at this point in the history
…y Commands (#3511)

* Remove `/?discard=true`

* Restore forward slash
  • Loading branch information
X-Guardian authored Jun 11, 2023
1 parent fa6a77a commit 7fa9b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controllers/templates/web_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}/");
}
});
});
Expand All @@ -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 }}/");
}
});
});
Expand Down

0 comments on commit 7fa9b9c

Please sign in to comment.