From bde972de60cc063c08db949de8f440b6f0d3e2b3 Mon Sep 17 00:00:00 2001 From: Emma Whamond Date: Mon, 30 Dec 2024 09:29:47 -0600 Subject: [PATCH] 291 | Update success message --- app/controllers/submissions_controller.rb | 2 +- config/locales/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index d4353250..fd0e4846 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -30,7 +30,7 @@ def set_submission def handle_successful_update(format) format.html do - flash[:success] = I18n.t("comments_saved") + flash[:success] = I18n.t("submission_updated") redirect_to submission_path(@submission.phase) end format.json { render json: { submission: @submission } } diff --git a/config/locales/en.yml b/config/locales/en.yml index b3a6e2f8..a3839cf4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -33,7 +33,7 @@ en: evaluation_form_destroyed: "Evaluation form was successfully destroyed." evaluation_form_saved: "Evaluation form was saved successfully." comments_saved: "Comments saved succesfully." - submission_updated: "Submission was updated succesfully." + submission_updated: "Submission was updated successfully." login_error: "There was an issue with logging in. Please try again." please_try_again: "Please try again." session_expired_alert: "Your session has expired. Please log in again."