mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 17:45:18 -05:00
Reuse one control for draggable, card visibility and swimlane/list settings columns. Apply explicit booleans atomically through board-admin authorization, deriving column fields from existing row definitions and retaining personal overrides. Cover every column, repeated clicks, persistence, isolation and denied updates. Thanks to xet7 !
8 lines
405 B
Plaintext
8 lines
405 B
Plaintext
template(name="boardSettingsColumnActions")
|
|
if canSetColumn
|
|
.board-settings-column-actions(data-section=section data-column=column)
|
|
button.js-set-settings-column(type="button" data-enabled="true" disabled=busy) {{_ 'select-all'}}
|
|
button.js-set-settings-column(type="button" data-enabled="false" disabled=busy) {{_ 'unselect-all'}}
|
|
if error
|
|
.warning(role="alert") {{error}}
|