mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 02:05:28 +00:00
chore: clean up FSM code
This commit is contained in:
@@ -9,6 +9,7 @@ import type { Client, API } from "revolt.js";
|
||||
import { ulid } from "ulid";
|
||||
|
||||
import { determineLink } from "../../lib/links";
|
||||
import { injectController } from "../../lib/window";
|
||||
|
||||
import { getApplicationState } from "../../mobx/State";
|
||||
|
||||
@@ -52,6 +53,9 @@ class ModalController<T extends Modal> {
|
||||
rendered: computed,
|
||||
isVisible: computed,
|
||||
});
|
||||
|
||||
// Inject globally
|
||||
injectController("modal", this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user