mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-16 00:12:33 +08:00
Rename, hide menu
This commit is contained in:
parent
924ba2c343
commit
957b0dbbe8
@ -1318,8 +1318,12 @@ export class ComfyApp {
|
|||||||
let user = localStorage["Comfy.userId"];
|
let user = localStorage["Comfy.userId"];
|
||||||
if (!user || !users[user]) {
|
if (!user || !users[user]) {
|
||||||
// This will rarely be hit so move the loading to on demand
|
// This will rarely be hit so move the loading to on demand
|
||||||
const { UserSelectionDialog } = await import("./ui/userSelection.js");
|
const { UserSelectionScreen } = await import("./ui/userSelection.js");
|
||||||
const { userId, username, created } = await new UserSelectionDialog().show(users, user);
|
|
||||||
|
this.ui.menuContainer.style.display = "none";
|
||||||
|
const { userId, username, created } = await new UserSelectionScreen().show(users, user);
|
||||||
|
this.ui.menuContainer.style.display = "";
|
||||||
|
|
||||||
user = userId;
|
user = userId;
|
||||||
localStorage["Comfy.userName"] = username;
|
localStorage["Comfy.userName"] = username;
|
||||||
localStorage["Comfy.userId"] = user;
|
localStorage["Comfy.userId"] = user;
|
||||||
@ -1367,7 +1371,6 @@ export class ComfyApp {
|
|||||||
async setup() {
|
async setup() {
|
||||||
await this.#setUser();
|
await this.#setUser();
|
||||||
await this.ui.settings.load();
|
await this.ui.settings.load();
|
||||||
this.ui.menuContainer.style.display = "";
|
|
||||||
await this.#loadExtensions();
|
await this.#loadExtensions();
|
||||||
|
|
||||||
// Create and mount the LiteGraph in the DOM
|
// Create and mount the LiteGraph in the DOM
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { $el } from "../ui.js";
|
|||||||
import { addStylesheet } from "../utils.js";
|
import { addStylesheet } from "../utils.js";
|
||||||
import { createSpinner } from "./spinner.js";
|
import { createSpinner } from "./spinner.js";
|
||||||
|
|
||||||
export class UserSelectionDialog {
|
export class UserSelectionScreen {
|
||||||
async show(users, user) {
|
async show(users, user) {
|
||||||
// This will rarely be hit so move the loading to on demand
|
// This will rarely be hit so move the loading to on demand
|
||||||
await addStylesheet(import.meta.url);
|
await addStylesheet(import.meta.url);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user