Copilot commented on code in PR #3726:
URL: https://github.com/apache/texera/pull/3726#discussion_r2335696441
##########
core/gui/src/app/workspace/component/result-exportation/result-exportation.component.ts:
##########
@@ -157,4 +161,24 @@ export class ResultExportationComponent implements OnInit {
);
this.modalRef.close();
}
+
+ onClickCreateNewDataset(): void {
+ const modal = this.modalService.create({
+ nzTitle: "Create New Dataset",
+ nzContent: UserDatasetVersionCreatorComponent,
+ nzData: {
+ isCreatingVersion: false,
+ },
+ nzFooter: null,
+ nzWidth: 500,
+ });
+
+ modal.afterClose.subscribe((result: DashboardDataset | null) => {
+ if (result) {
+ this.userAccessibleDatasets.unshift(result);
+ this.filteredUserAccessibleDatasets = [...this.userAccessibleDatasets];
+ this.inputDatasetName = result.dataset.name;
Review Comment:
Consider calling the existing `onUserInputDatasetName()` method instead of
directly setting `inputDatasetName` to ensure consistent behavior with the
search filtering logic.
```suggestion
this.inputDatasetName = result.dataset.name;
this.onUserInputDatasetName(null);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]