CCExtractor / sample-platform-v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redirect on sample upload

zelzhan opened this issue · comments

Right now, if the user uploads the sample, it will stay on the same page with the disabled button. It should redirect user to the home page or to the same page with an enabled button and notification whether the sample has been uploaded successfully

One should implement the logic in libs/frontend/samples/src/lib/components/dialog/dialog.component.ts by injecting the router in constructor and calling router.navigate. See https://angular.io/guide/router for more details.