mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-01 00:13:25 +00:00
crazy games integrations (#2675)
## Description: Integrate with crazy games SDK ## Please complete the following: - [ ] I have added screenshots for all UI updates - [ ] I process any text displayed to the user through translateText() and I've added it to the en.json file - [ ] I have added relevant tests to the test directory - [ ] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: evan
This commit is contained in:
@@ -8,6 +8,7 @@ export class OModal extends LitElement {
|
||||
@property({ type: String }) title = "";
|
||||
@property({ type: String }) translationKey = "";
|
||||
@property({ type: Boolean }) alwaysMaximized = false;
|
||||
@property({ type: Function }) onClose?: () => void;
|
||||
|
||||
static styles = css`
|
||||
.c-modal {
|
||||
@@ -75,10 +76,10 @@ export class OModal extends LitElement {
|
||||
this.isModalOpen = true;
|
||||
}
|
||||
public close() {
|
||||
this.isModalOpen = false;
|
||||
this.dispatchEvent(
|
||||
new CustomEvent("modal-close", { bubbles: true, composed: true }),
|
||||
);
|
||||
if (this.isModalOpen) {
|
||||
this.isModalOpen = false;
|
||||
this.onClose?.();
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user