()
| 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()); |
no test coverage detected