Skip to content

Commit 6cb5075

Browse files
committed
Update surveys _action override to fix wrong button overrides
1 parent 9825d8c commit 6cb5075

2 files changed

Lines changed: 22 additions & 60 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Decidim Zuerich Override
2+
#
3+
# Created at: 2025-08-05
4+
# Updated at: 2025-11-11
5+
# Author: Thomas Burkhalter
6+
#
7+
# Original:
8+
# Module: decidim-surveys
9+
# Template: app/views/decidim/surveys/admin/component/_actions.html.erb
10+
#
11+
# Why?:
12+
# The version currently in the openpoke/backfix, seems to be an old version.
13+
# This is the up-to-date file from the decidim repo.
14+
#
15+
# == Update 2025-11-11 ==
16+
# Since this file is overridden again with deface,
17+
# I switched this to a deface override itself. It's also more robust,
18+
# since it doesn't override once the correct Template is used.
19+
20+
replace "erb[silent]:contains('if component.visible?')"
21+
closing_selector "erb[silent]:contains('end')"
22+
copy "erb[loud]:contains('action: :unpublish')"

app/views/decidim/surveys/admin/component/_actions.html.erb

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)