-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue #feat prod issues resolved and delete functionality done in man… #361
issue #feat prod issues resolved and delete functionality done in man… #361
Conversation
let result = await this.sessionService.deleteSession(id); | ||
if (result.responseCode == "OK") { | ||
this.toast.showToast(result.message, "success"); | ||
this.router.navigate([`/${CommonRoutes.TABS}/${CommonRoutes.MANAGE_SESSION}`], { replaceUrl: true }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to use relapceUrl true??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rather than redirecting, cant we reload the list only?
@@ -2,12 +2,17 @@ import { Injectable } from '@angular/core'; | |||
import { HttpService } from '../http/http.service'; | |||
import { urlConstants } from '../../constants/urlConstants'; | |||
import * as _ from 'lodash-es'; | |||
import { UtilService } from '../util/util.service'; | |||
import { CommonRoutes } from 'src/global.routes'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this import
if (result.responseCode == "OK") { | ||
this.toast.showToast(result.message, "success"); | ||
resolve(result); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Else you need to reject the request
…age session page