summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-22 20:43:55 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-22 20:43:55 +0200
commitb78a91f158f90343d49a252fc332680108eba18d (patch)
treecb1e1034d9cdcaf14885fb30c3ade54188df72ef /app
parentb8a97d1dc567921906bb750bc0529484bf820975 (diff)
Make important flash notices survive the boilerplate Node-locked info in nodes controller
Diffstat (limited to 'app')
-rw-r--r--app/controllers/nodes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb
index 9c84420..87d2681 100644
--- a/app/controllers/nodes_controller.rb
+++ b/app/controllers/nodes_controller.rb
@@ -77,7 +77,7 @@ class NodesController < ApplicationController
77 "This page has unsaved changes from a previous session, shown below. " \ 77 "This page has unsaved changes from a previous session, shown below. " \
78 "Save to keep them, or use \"Discard Autosave\" below to go back to the last saved version." 78 "Save to keep them, or use \"Discard Autosave\" below to go back to the last saved version."
79 elsif freshly_locked 79 elsif freshly_locked
80 flash.now[:notice] = "Node locked and ready to edit" 80 flash.now[:notice] ||= "Node locked and ready to edit"
81 end 81 end
82 rescue LockedByAnotherUser => e 82 rescue LockedByAnotherUser => e
83 flash[:error] = e.message 83 flash[:error] = e.message