diff --git a/app/javascript/initializers/bridge/bridge_element.js b/app/javascript/initializers/bridge/bridge_element.js index 29aa52549..c29b4d9a1 100644 --- a/app/javascript/initializers/bridge/bridge_element.js +++ b/app/javascript/initializers/bridge/bridge_element.js @@ -4,7 +4,7 @@ BridgeElement.prototype.getButton = function() { const button = { title: this.title, icon: this.getIcon(), - showLabel: this.getShowLabel(), + displayTitle: this.getDisplayTitle(), isMainAction: this.getIsMainAction() } console.log(button) @@ -21,8 +21,8 @@ BridgeElement.prototype.getIcon = function() { return null } -BridgeElement.prototype.getShowLabel = function() { - return !!this.bridgeAttribute(`show-label`) +BridgeElement.prototype.getDisplayTitle = function() { + return !!this.bridgeAttribute(`display-title`) } BridgeElement.prototype.getIsMainAction = function() { diff --git a/app/views/cards/container/_closure_buttons.html.erb b/app/views/cards/container/_closure_buttons.html.erb index ce2c57aa5..2872238c7 100644 --- a/app/views/cards/container/_closure_buttons.html.erb +++ b/app/views/cards/container/_closure_buttons.html.erb @@ -7,7 +7,7 @@ <% end %> <%= button_to card_closure_path(card), class: "btn btn--circle-mobile borderless", - data: { controller: "hotkey", form_target: "submit", bridge__buttons_target: "button", bridge_title: "Mark done", bridge_main_action: "true", bridge_show_label: true, bridge_icon_url: bridge_icon("check"), action: "keydown.d@document->hotkey#click" }, + data: { controller: "hotkey", form_target: "submit", bridge__buttons_target: "button", bridge_title: "Mark done", bridge_main_action: "true", bridge_display_title: true, bridge_icon_url: bridge_icon("check"), action: "keydown.d@document->hotkey#click" }, form: { data: { controller: "form" } } do %> <%= icon_tag "check", class: "icon--mobile-only" %> Mark as Done diff --git a/app/views/columns/show/_add_card_button.html.erb b/app/views/columns/show/_add_card_button.html.erb index a2f9d9b44..bbb42e3ec 100644 --- a/app/views/columns/show/_add_card_button.html.erb +++ b/app/views/columns/show/_add_card_button.html.erb @@ -1,7 +1,7 @@