Skip to content

Commit

Permalink
Merge pull request #1501 from GSA/1490-announcement-removal-bug-from-…
Browse files Browse the repository at this point in the history
…staging

Fix bug - change method attribute
  • Loading branch information
kkrug authored Jan 7, 2025
2 parents e451902 + d55c876 commit 2881071
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ defmodule Web.Router do
)

post("/challenges/:id/create_announcement", ChallengeController, :create_announcement)
post("/challenges/:id/remove_announcement", ChallengeController, :remove_announcement)
get("/challenges/:id/remove_announcement", ChallengeController, :remove_announcement)

resources("/challenges/:id/submissions/export", SubmissionExportController,
only: [:index, :create]
Expand Down
2 changes: 1 addition & 1 deletion lib/web/views/challenge_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ defmodule Web.ChallengeView do
when not is_nil(announcement) do
link("Remove update",
to: Routes.challenge_path(conn, :remove_announcement, challenge.id),
method: :post,
method: :get,
class: "usa-button usa-button--secondary",
data: [confirm: "Are you sure you want to remove this update?"]
)
Expand Down

0 comments on commit 2881071

Please sign in to comment.