MCPcopy Create free account
hub / github.com/chieapp/chie / showNewAssistantWindowOrError

Method showNewAssistantWindowOrError

src/controller/window-manager.ts:82–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 showNewAssistantWindowOrError() {
83 const hasCredential = apiManager.getCredentials().length > 0;
84 if (hasCredential)
85 this.showNamedWindow('newAssistant');
86 else
87 alert('Can not create new assistant before adding API credentials.');
88 }
89
90 getCurrentWindow() {
91 return this.windows.find(w => w.window.isActive());

Callers 2

constructorMethod · 0.80
createAssistantsMenuMethod · 0.80

Calls 3

showNamedWindowMethod · 0.95
alertFunction · 0.85
getCredentialsMethod · 0.80

Tested by

no test coverage detected