mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 13:43:06 -04:00
parent
938e07a03f
commit
e5df5349b6
3 changed files with 56 additions and 4 deletions
|
@ -16,7 +16,7 @@ const {
|
|||
ResolveCallbackTypes
|
||||
} = require("./constants");
|
||||
const {InteractiveComponentTypes, DEFAULT_BUTTON_STYLES} = require("#cardstack/constants");
|
||||
const {xid} = require("utils");
|
||||
const {Xid} = require("#utils/hash");
|
||||
|
||||
/**
|
||||
* Stores all active card stacks
|
||||
|
@ -338,7 +338,7 @@ class DynamicCardStack {
|
|||
let component = {
|
||||
type: MessageComponentTypes.BUTTON,
|
||||
// id/XID is used for dynamically generated components via BUTTON_GENERATOR
|
||||
customId: button.customId ? id + "/" + xid(button.customId) : id,
|
||||
customId: button.customId ? id + "/" + Xid(button.customId) : id,
|
||||
style: button.style || 2,
|
||||
disabled: disabled
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue