fix: Real-time collaboration admin page: save button visible on read-only non-editable form (WP #69801)

This commit is contained in:
Tomas Hykel
2026-06-12 11:07:13 +00:00
parent 8d1cbe8000
commit 855f0dd6db
2 changed files with 5 additions and 1 deletions
@@ -61,7 +61,7 @@
placeholder: Setting.collaborative_editing_hocuspocus_secret.present? ? "••••••••••••••••" : nil
)
form.submit
form.submit unless none_writable_settings?
end
end
else
@@ -186,6 +186,10 @@ RSpec.describe "Document collaboration settings admin",
with: "",
disabled: true)
end
it "does not show a save button" do
expect(page).to have_no_button(I18n.t("button_save"))
end
end
context "with non-admin user" do