Fix bug with recent Corporation UI rewrite. Improve some styling with Corporation UI and the status text messages

This commit is contained in:
danielyxie
2019-03-13 20:10:28 -07:00
parent 5230837dad
commit 8eecb1539c
16 changed files with 140 additions and 87 deletions
+3 -1
View File
@@ -17,11 +17,13 @@ export function createStatusText(text: string) {
}
const statusElement: HTMLElement = getElementById("status-text");
statusElement.style.display = "block";
statusElement.classList.add("status-text");
statusElement.innerText = text;
const handler: Action = () => {
statusElement.classList.remove("status-text");
statusElement.innerText = "";
statusElement.style.display = "none";
statusElement.classList.remove("status-text");
};
x = setTimeoutRef(handler, threeSeconds);