Skip to content

Commit cc69f18

Browse files
author
Hassane Diaby
committed
Bug #15500 : pastis - Cannot open profile from desktop
1 parent 3ba3703 commit cc69f18

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ui/ui-frontend/projects/pastis/src/app/shared/pastis-popup-option/pastis-popup-option.component.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,12 @@ export class PastisPopupOptionComponent implements OnInit, OnDestroy {
142142
const formData = new FormData();
143143
formData.append('file', fileToUpload, fileToUpload.name);
144144
this.profileService.uploadProfile(formData).subscribe((response: any) => {
145-
if (response && response.id) {
146-
// Navigate to edit page with the profile ID
147-
this.router.navigate(['edit', response.id], {
145+
if (response) {
146+
this.router.navigate(['new'], {
147+
queryParams: {
148+
type: response.type,
149+
version: response.sedaVersion,
150+
},
148151
relativeTo: this.route,
149152
});
150153
}

0 commit comments

Comments
 (0)