diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index bd87a47..c321390 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit bd87a47795f8f9243e0a1129d715fcb96cf9b714 +Subproject commit c321390ccbbe72515f336830c3aa54e3156379ef diff --git a/src/app/pages/advanced-criteria/advanced-criteria.component.ts b/src/app/pages/advanced-criteria/advanced-criteria.component.ts index 07ae3f8..1294a59 100644 --- a/src/app/pages/advanced-criteria/advanced-criteria.component.ts +++ b/src/app/pages/advanced-criteria/advanced-criteria.component.ts @@ -2,14 +2,13 @@ import {ChangeDetectorRef, Component, OnDestroy, OnInit, ViewChild} from "@angul import {CommunityService} from "../../openaireLibrary/connect/community/community.service"; import {AdvancedCriteriaService} from "./advanced-criteria.service"; import {Subscription} from "rxjs"; -import {ContentProvider, SelectionCriteria} from "../../openaireLibrary/utils/entities/contentProvider"; +import {SelectionCriteria} from "../../openaireLibrary/utils/entities/contentProvider"; import { FullScreenModalComponent } from "../../openaireLibrary/utils/modal/full-screen-modal/full-screen-modal.component"; import {NotificationHandler} from "../../openaireLibrary/utils/notification-handler"; import {CriteriaComponent} from "../content-providers/criteria/criteria.component"; import {CriteriaUtils} from "../content-providers/criteria-utils"; -import {OpenaireEntities} from "../../openaireLibrary/utils/properties/searchFields"; import {CommunityInfo} from "../../openaireLibrary/connect/community/communityInfo"; @Component({ diff --git a/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.html b/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.html index 803a79a..d3a5f63 100644 --- a/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.html +++ b/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.html @@ -1,13 +1,13 @@
-
-
-
-
+
+
+
+
-
+
-
+
No subjects
diff --git a/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.ts b/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.ts index cf4bd6d..443c001 100644 --- a/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.ts +++ b/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.ts @@ -28,7 +28,7 @@ export class SubjectsEditFormComponent implements OnInit { properties: EnvProperties = properties; communityId: string = null; community: CommunityInfo = null; - showLoading = true; + loading = true; params: any; private subscriptions: any[] = []; @@ -105,7 +105,7 @@ export class SubjectsEditFormComponent implements OnInit { params => { this.communityId = params['community']; this.title.setTitle(this.communityId.toUpperCase() + ' | Subjects'); - this.showLoading = true; + this.loading = true; this.subscriptions.push(this._communityService.getCommunityAsObservable().subscribe( community => { this.community = community; @@ -131,7 +131,7 @@ export class SubjectsEditFormComponent implements OnInit { this.originalSubjects = HelperFunctions.copy(this.displayedSubjects); this.originalSdg = HelperFunctions.copy(this.displayedSdg); this.originalFos = HelperFunctions.copy(this.displayedFos); - this.showLoading = false; + this.loading = false; }, error => this.handleUpdateError('System error retrieving community profile', error) )); @@ -305,7 +305,7 @@ export class SubjectsEditFormComponent implements OnInit { public saveSubjects(subjects, displayedSubjects, type: string) { if (this.communityId != null && this.communityId !== '') { - this.showLoading = true; + this.loading = true; const subjectsToDeleteAr = this.getSubjectsExistOnlyInFirst(subjects, displayedSubjects); const subjectsToAddAr = this.getSubjectsExistOnlyInFirst(displayedSubjects, subjects); const subjectsToDelete = this.getNonEmptyItems(subjectsToDeleteAr); @@ -328,7 +328,7 @@ export class SubjectsEditFormComponent implements OnInit { console.error(error) } NotificationHandler.rise(message, 'danger'); - this.showLoading = false; + this.loading = false; } afterUpdateActions(response, message: string) { @@ -344,7 +344,7 @@ export class SubjectsEditFormComponent implements OnInit { this._communityService.updateSubjects(this.community.subjects, this.community.fos, this.community.sdg); this._clearCacheService.purgeBrowserCache("Subjects "+message, this.communityId); NotificationHandler.rise('Subjects successfully ' + message + '!') - this.showLoading = false; + this.loading = false; }