Rename is-main-action to display-as-primary-action

This commit is contained in:
Adrien Maston
2026-02-26 11:33:24 +01:00
parent fc1ee616c8
commit 047e8efad3
4 changed files with 6 additions and 6 deletions
@@ -5,7 +5,7 @@ BridgeElement.prototype.getButton = function() {
title: this.title,
icon: this.getIcon(),
displayTitle: this.getDisplayTitle(),
isMainAction: this.getIsMainAction()
displayAsPrimaryAction: this.getDisplayAsPrimaryAction()
}
return button
}
@@ -24,6 +24,6 @@ BridgeElement.prototype.getDisplayTitle = function() {
return !!this.bridgeAttribute(`display-title`)
}
BridgeElement.prototype.getIsMainAction = function() {
return !!this.bridgeAttribute(`main-action`)
BridgeElement.prototype.getDisplayAsPrimaryAction = function() {
return !!this.bridgeAttribute(`display-as-primary-action`)
}