Frontmatter
| id | 8061 |
| title | Map AddFileDialog Save button to ViewportController |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 8, 2025, 1:40 PM |
| updatedAt | Dec 8, 2025, 2:07 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8061 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 8, 2025, 2:07 PM |
Enable the "Save" button in
AddFileDialogto trigger a method inViewportController.Update
AddFileDialog.mjs:reference: 'filename'to theTextFieldfor easy value access.handler: 'onAddFileDialogSave'to the "Save" button.Update
ViewportController.mjs:onNewFileButtonClick, passparentComponent: me.componentwhen creating the dialog. This establishes a logical parent-child relationship without mounting the dialog in the Viewport's DOM, enabling the event handler to bubble up to theViewportController.onAddFileDialogSave(data)method to handle the event.