Rework typescript to use modules
web UI now uses modules, and relies less on bodge to make things work. Also fixes an issue where invites where "failed to send to xx" appeared in invite form.
This commit is contained in:
+4
-1
@@ -1,4 +1,7 @@
|
||||
const ombiDefaultsModal = createModal('ombiDefaults');
|
||||
import { _get, _post, _delete, rmAttr, addAttr } from "modules/common.js";
|
||||
|
||||
const ombiDefaultsModal = window.BS.newModal('ombiDefaults');
|
||||
|
||||
(document.getElementById('openOmbiDefaults') as HTMLButtonElement).onclick = function (): void {
|
||||
let button = this as HTMLButtonElement;
|
||||
button.disabled = true;
|
||||
|
||||
Reference in New Issue
Block a user