Replace browser popups with in-page dialogs; focus new-task prompt
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { get, put, subscribe } from "./api.js";
|
||||
import { errorText, h, replace } from "./dom.js";
|
||||
import { errorText, h, replace, showAlert } from "./dom.js";
|
||||
import { mountNavbar } from "./navbar.js";
|
||||
import { Pane } from "./panes.js";
|
||||
import { handleEvent, loadInbox, loadMe, loadProjects, notify, on, selectTask, state } from "./state.js";
|
||||
@@ -21,7 +21,7 @@ function identityBanner(root: HTMLElement): void {
|
||||
state.me = await put("/api/me", { body: { git_name: name.value, git_email: email.value } });
|
||||
render();
|
||||
} catch (err) {
|
||||
alert(errorText(err));
|
||||
void showAlert(errorText(err));
|
||||
}
|
||||
};
|
||||
root.hidden = false;
|
||||
|
||||
Reference in New Issue
Block a user