Button disabling/enabling

Closes #10
This commit is contained in:
2024-01-20 15:02:45 +01:00
parent 1ae5658ebe
commit 0e85a21d2c
3 changed files with 36 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
ActiveSupport.on_load :turbo_streams_tag_builder do
def disable(target)
action :disable, target
end
def disable_all(targets)
action_all :disable, targets
end
end