From d33cebd708ae12da1b861e6e0b0960ed081cbd54 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 7 Aug 2025 13:50:45 -0500 Subject: [PATCH] Display flash when saving public description, update notice --- app/controllers/collections_controller.rb | 2 +- app/views/collections/edit/_publication.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/collections_controller.rb b/app/controllers/collections_controller.rb index e7100eaa4..4dd215d21 100644 --- a/app/controllers/collections_controller.rb +++ b/app/controllers/collections_controller.rb @@ -19,7 +19,7 @@ class CollectionsController < ApplicationController @collection.update! collection_params @collection.accesses.revise granted: grantees, revoked: revokees if grantees_changed? - redirect_to edit_collection_path(@collection), notice: "Collection updated" + redirect_to edit_collection_path(@collection), notice: "Changes saved" end def destroy diff --git a/app/views/collections/edit/_publication.html.erb b/app/views/collections/edit/_publication.html.erb index 32299fe88..188a28d65 100644 --- a/app/views/collections/edit/_publication.html.erb +++ b/app/views/collections/edit/_publication.html.erb @@ -28,7 +28,7 @@ Add an optional description to the public page
- <%= form_with model: collection, class: "txt-align-start", data: { controller: "form" } do |form| %> + <%= form_with model: collection, class: "txt-align-start", data: { controller: "form", turbo_frame: "_top" } do |form| %> <%= form.rich_textarea :public_description, class: "rich-text-content txt-small", placeholder: "Add a public note about this collection…", data: { action: "keydown.ctrl+enter->form#submit:prevent keydown.meta+enter->form#submit:prevent keydown.esc->form#cancel:stop" } %>