@@ -373,8 +373,9 @@ export class ApisComponent implements OnInit, OnDestroy {
this.loading = true;
if(this.index === -1) {
this.subscriptions.push(this.apisService.create(this.form.getRawValue()).subscribe(api => {
- this.apis.push(api)
+ let index = this.apis.push(api) - 1;
NotificationHandler.rise('Your service has been created successfully.');
+ this.openInfoModal(index);
this.loading = false;
}, error => {
console.error(error);
@@ -385,6 +386,7 @@ export class ApisComponent implements OnInit, OnDestroy {
this.subscriptions.push(this.apisService.save(this.apis[this.index].service.id, this.form.getRawValue()).subscribe(api => {
this.apis[this.index] = api;
NotificationHandler.rise('Your service has been saved successfully.');
+ this.openInfoModal(this.index);
this.loading = false;
}, error => {
console.error(error);
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index c69bfe2..90e6384 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -43,11 +43,11 @@ const routes: Routes = [
canActivateChild: [AdminLoginGuard]
},
{
- path: 'error',
+ path: '**',
pathMatch: 'full',
component: ErrorPageComponent,
data: {hasSidebar: false}
- },
+ }
];
@NgModule({
diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary
index 68c352d..fa61b8b 160000
--- a/src/app/openaireLibrary
+++ b/src/app/openaireLibrary
@@ -1 +1 @@
-Subproject commit 68c352d3d275209d52bc3198dad7482ee21d193d
+Subproject commit fa61b8bef431b03eca1092fe05ab16611e3233ae
diff --git a/src/app/personal-info/personal-info.component.ts b/src/app/personal-info/personal-info.component.ts
index 3d28ac1..419500f 100644
--- a/src/app/personal-info/personal-info.component.ts
+++ b/src/app/personal-info/personal-info.component.ts
@@ -35,7 +35,7 @@ import {NavigationEnd, Router} from "@angular/router";