Fix screen force-delete submission
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 1m12s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 30s

This commit is contained in:
lzstealth committed 2026-10-15 02:17:45 +01:00
1 parent f0601f823d
commit 40f0892262
4 files changed
+10 -1

No files matched your search

+4
View File
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
## 2.15.3 - 2026-10-15 ## 2.15.3 - 2026-10-15
### Fixed
- Preserved the force-delete flag when submitting a screen with onboarding-device bindings.
### Changed ### Changed
- Replaced the canvas-size duplicate action with reversible disable/enable controls. Disabled sizes remain assigned to existing templates and playlists but cannot be selected for new ones. - Replaced the canvas-size duplicate action with reversible disable/enable controls. Disabled sizes remain assigned to existing templates and playlists but cannot be selected for new ones.
+4
View File
@@ -22,6 +22,10 @@
return; return;
} }
if (form.hasAttribute('data-native-submit')) {
return;
}
var actionPath = ''; var actionPath = '';
try { try {
actionPath = new URL(form.action, window.location.href).pathname; actionPath = new URL(form.action, window.location.href).pathname;
+1 -1
View File
@@ -43,7 +43,7 @@
</div> </div>
</form> </form>
{{#if screen.canForceDelete}} {{#if screen.canForceDelete}}
<form id="screen-force-delete-form" method="post" action="{{forceDeleteUrl}}" data-confirm-message="Force delete this screen group and unlink its onboarding devices?"> <form id="screen-force-delete-form" method="post" action="{{forceDeleteUrl}}" data-confirm-message="Force delete this screen group and unlink its onboarding devices?" data-native-submit>
<input type="hidden" name="force_delete" value="1" /> <input type="hidden" name="force_delete" value="1" />
</form> </form>
{{/if}} {{/if}}
+1
View File
@@ -269,6 +269,7 @@ test('screen edit page offers force delete for disconnected onboarding bindings'
assert.match(html, /Force delete/); assert.match(html, /Force delete/);
assert.match(html, /name="force_delete" value="1"/); assert.match(html, /name="force_delete" value="1"/);
assert.match(html, /data-native-submit/);
assert.match(html, /Force delete this screen group and unlink its onboarding devices\?/); assert.match(html, /Force delete this screen group and unlink its onboarding devices\?/);
assert.ok(html.indexOf('form="screen-force-delete-form"') < html.indexOf('class="btn-group save-action-group"')); assert.ok(html.indexOf('form="screen-force-delete-form"') < html.indexOf('class="btn-group save-action-group"'));
assert.match(html, /class="ms-auto">\s*<div class="btn-group save-action-group"/); assert.match(html, /class="ms-auto">\s*<div class="btn-group save-action-group"/);