Commit e73221f3 authored by rajkumar's avatar rajkumar
Browse files

Removing close success related changes

parent 2a22dcb2
......@@ -8,15 +8,15 @@ version 7.3.8
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/ena/submit/webin`. The app will automatically reload if you change any of the source files.
Run `ng serve --base-href=/ena/dev/submit/webin/` for a dev server. Navigate to `http://localhost:4200/ena/dev/submit/webin`. The app will automatically reload if you change any of the source files.
## Production server
Run `ng build --prod` and then `ng serve --prod` for a production server. Navigate to `http://localhost:4200/ena/submit/webin`.
Run `ng build --prod` and then `ng serve --prod --base-href=/ena/submit/webin/` for a production server. Navigate to `http://localhost:4200/ena/submit/webin`.
## Docker image build (for local run/ test only)
Run `docker build -t dockerhub.ebi.ac.uk/enasequence/webin-portal . `
Run `docker build -t dockerhub.ebi.ac.uk/enasequence/webin-portal --build-arg configuration=dev --build-arg basePath=/ena/dev/submit/webin/ . `
## Docker image push (for local run/ test only)
......
......@@ -108,14 +108,6 @@ export class AccountInfoComponent {
this.deleteContactRow(contactObj);
}
if (result.event === "CloseSuccess") {
if (!this.editMode) {
this._router.navigateByUrl("");
} else {
this._router.navigateByUrl("/accountInfo");
}
}
if (typeof contactObj != "undefined") {
this.updateMainContact(contactObj);
this.dataSource = new MatTableDataSource<any>(this.contactArray);
......
......@@ -71,8 +71,6 @@
<div style="text-align:center" *ngIf="action==='Error'">
<button type="button" mat-raised-button style="margin-left: 5px;" (click)="closePopup()">Ok</button>
</div>
<div style="text-align:center" *ngIf="action==='Success'">
<button type="button" mat-raised-button style="margin-left: 5px;" (click)="closeSuccessPopup()">Ok</button>
</div>
</form>
\ No newline at end of file
......@@ -58,9 +58,7 @@ export class ContactDialogModalComponent implements OnInit {
this.dialogRef.close({ event: 'close' });
}
closeSuccessPopup() {
this.dialogRef.close({ event: 'CloseSuccess' });
}
updateName(contact) {
var name = contact["firstName"] + " " + (contact["middleInitials"] || "") + " " + contact["surname"];
......
......@@ -73,14 +73,6 @@ export class DacManagementComponent implements OnInit {
this.deleteContactRow(contactObj);
}
if (result.event === "CloseSuccess") {
if (!this.editMode) {
// this._router.navigateByUrl("");
} else {
// this._router.navigateByUrl("/accountInfo");
}
}
if (typeof contactObj != "undefined") {
this.dataSource = new MatTableDataSource<any>(this.contactArray);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment