Use bridge buttons controller in boards.
This commit is contained in:
@@ -5,7 +5,8 @@ module BoardsHelper
|
||||
|
||||
def link_to_edit_board(board)
|
||||
link_to edit_board_path(board), class: "btn", data: {
|
||||
controller: "tooltip bridge--nav-button",
|
||||
controller: "tooltip",
|
||||
bridge__buttons_target: "button",
|
||||
bridge_icon_name: "gearshape.fill",
|
||||
bridge_title: "Settings"
|
||||
} do
|
||||
|
||||
@@ -4,16 +4,18 @@
|
||||
<%= turbo_stream_from @board %>
|
||||
|
||||
<% content_for :header do %>
|
||||
<div class="header__actions header__actions--start">
|
||||
<%= link_to_webhooks(@board) if Current.user.admin? %>
|
||||
</div>
|
||||
<div data-controller="bridge--buttons">
|
||||
<div class="header__actions header__actions--start">
|
||||
<%= link_to_webhooks(@board) if Current.user.admin? %>
|
||||
</div>
|
||||
|
||||
<h1 class="header__title divider divider--fade full-width" data-bridge--page-target="header">
|
||||
<span class="overflow-ellipsis"><%= @board.name %></span>
|
||||
</h1>
|
||||
<h1 class="header__title divider divider--fade full-width" data-bridge--page-target="header">
|
||||
<span class="overflow-ellipsis"><%= @board.name %></span>
|
||||
</h1>
|
||||
|
||||
<div class="header__actions header__actions--end">
|
||||
<%= link_to_edit_board @board %>
|
||||
<div class="header__actions header__actions--end">
|
||||
<%= link_to_edit_board @board %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user