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 (runatlantis#3511)

* Remove `/?discard=true`

* Restore forward slash
  • Loading branch information
X-Guardian authored and ijames-gc committed Feb 13, 2024
1 parent a1f4954 commit d852005
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 d852005

Please sign in to comment.