Merge branch 'main' into card-perma-editing
* main: (56 commits) Update app/views/cards/container/_closure_buttons.html.erb Update app/views/columns/show/_add_card_button.html.erb Update app/views/events/index/_add_card_button.html.erb Just return the object Rename is-main-action to display-as-primary-action Remove debug line Rename show-label to display-title Include path in web push payload for backwards compatibility Add base_url to native push notification payload Use internal account ID as `account_id` and add `account_slug` Make APNS and FCM env vars available Fix devices_path route helper in native devices partial Fix tests for renamed fixtures and new stacked notifications Add creator_familiar_name to push notification payload Add creator initials and avatar color to push notification payload Add avatar_url so we always get an avatar even when the user hasn't set one Document --push flag for testing native push notifications Don't read APNS_TEAM_ID from 1Password Simplify push.yml to only use B64 encryption keys Rename apns-dev to push-dev and unify 1Password credentials ...
This commit is contained in:
@@ -3,7 +3,9 @@ import { BridgeElement } from "@hotwired/hotwire-native-bridge"
|
||||
BridgeElement.prototype.getButton = function() {
|
||||
return {
|
||||
title: this.title,
|
||||
icon: this.getIcon()
|
||||
icon: this.getIcon(),
|
||||
displayTitle: this.getDisplayTitle(),
|
||||
displayAsPrimaryAction: this.getDisplayAsPrimaryAction()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,3 +18,11 @@ BridgeElement.prototype.getIcon = function() {
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
BridgeElement.prototype.getDisplayTitle = function() {
|
||||
return !!this.bridgeAttribute(`display-title`)
|
||||
}
|
||||
|
||||
BridgeElement.prototype.getDisplayAsPrimaryAction = function() {
|
||||
return !!this.bridgeAttribute(`display-as-primary-action`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user