Skip to content
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

Merged
merged 3 commits into from
Jan 24, 2024

Conversation

GSuma21
Copy link
Contributor

@GSuma21 GSuma21 commented Jan 23, 2024

…age session page

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 });
Copy link
Collaborator

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??

Copy link
Collaborator

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';
Copy link
Collaborator

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);
}
Copy link
Collaborator

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

@kiranharidas187 kiranharidas187 merged commit 77c70f4 into ELEVATE-Project:release-2.6.0 Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants