Formatting

This commit is contained in:
scottkiener-at-safelite 2026-02-05 10:40:13 -05:00
parent 564d3aa506
commit 3f43c4e6eb

View file

@ -45,12 +45,18 @@ export default {
display: "corner", display: "corner",
onLoad: () => this.openSierraChatModal(), onLoad: () => this.openSierraChatModal(),
onOpen: () => {}, onOpen: () => {},
onClose: () => {if (!this.transferInProgress) {this.webchatGlobalNonpersistedState.showWebchatButton = true; this.transferInProgress = false;}}, onClose: () => {
onTransfer: (transfer) => {this.transferInProgress = true; if (!this.transferInProgress) {
this.webchatGlobalNonpersistedState.showWebchatButton = true;
this.transferInProgress = false;
}
},
onTransfer: (transfer) => {
this.transferInProgress = true;
window.dispatchEvent( window.dispatchEvent(
new CustomEvent("sierra-chat-transfer", { detail: transfer }) new CustomEvent("sierra-chat-transfer", { detail: transfer })
); );
}, },
}; };
}, },
getSierraContext() { getSierraContext() {