diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 9b5607f..7ebf4f7 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 9b5607fbd0204b44fb2c650df77fcb88f613fc2e +Subproject commit 7ebf4f7f9054c2119d5e3d1eb07d3cb0d52a8aeb diff --git a/src/app/pages/affiliations/affiliations.module.ts b/src/app/pages/affiliations/affiliations.module.ts index 98b5737..9e4deea 100644 --- a/src/app/pages/affiliations/affiliations.module.ts +++ b/src/app/pages/affiliations/affiliations.module.ts @@ -39,6 +39,6 @@ import {HelpContentService} from "../../services/help-content.service"; export class AffiliationsModule { constructor(private iconsService: IconsService) { - this.iconsService.registerIcons([add, preview, edit, remove]) + this.iconsService.registerIcons([add, preview, remove]) } } diff --git a/src/app/pages/claims/claims.component.ts b/src/app/pages/claims/claims.component.ts index fe7dc8c..9f37842 100644 --- a/src/app/pages/claims/claims.component.ts +++ b/src/app/pages/claims/claims.component.ts @@ -1,18 +1,28 @@ import {Component, OnInit} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; import {properties} from '../../../environments/environment'; -import {Subscriber} from 'rxjs'; +import {Subscriber, Subscription} from 'rxjs'; import {Title} from "@angular/platform-browser"; +import {CommunityInfo} from "../../openaireLibrary/connect/community/communityInfo"; +import {CommunityService} from "../../openaireLibrary/connect/community/community.service"; @Component({ selector: 'claims', template: ` -
+
+
+
+
Admin Dashboard - Manage Personal Info & + Affiliations +
+

{{community.shortTitle}}

+
+
-
@@ -21,28 +31,31 @@ import {Title} from "@angular/platform-browser"; }) export class ClaimsComponent implements OnInit { - communityId: string; + public community: CommunityInfo; + public stickyPageHeader: boolean = false; claimsInfoURL: string; externalPortalUrl = ''; - sub; + subs: any[] = []; constructor(private route: ActivatedRoute, + private communityService: CommunityService, private title: Title) { } ngOnInit() { - this.sub = this.route.params.subscribe(params => { - this.communityId = params['community']; - this.title.setTitle(this.communityId.toUpperCase() + ' | Manage Links'); + this.subs.push(this.communityService.getCommunityAsObservable().subscribe(community => { + this.community = community; + this.title.setTitle(this.community.shortTitle.toUpperCase() + ' | Manage Links'); this.claimsInfoURL = properties.claimsInformationLink; - this.externalPortalUrl = 'https://' + (properties.environment == 'beta' ? 'beta.' : '') + ((this.communityId == 'openaire') ? 'explore' : this.communityId) + '.openaire.eu'; - }); - + this.externalPortalUrl = 'https://' + (properties.environment == 'beta' ? 'beta.' : '') + ((this.community.communityId == 'openaire') ? 'explore' : this.community.communityId) + '.openaire.eu'; + })); } ngOnDestroy() { - if (this.sub instanceof Subscriber) { - this.sub.unsubscribe(); - } + this.subs.forEach(sub => { + if(sub instanceof Subscription) { + sub.unsubscribe(); + } + }) } } diff --git a/src/app/pages/community-info/profile/edit-community/edit-community.component.ts b/src/app/pages/community-info/profile/edit-community/edit-community.component.ts index 17ec521..5d580e9 100644 --- a/src/app/pages/community-info/profile/edit-community/edit-community.component.ts +++ b/src/app/pages/community-info/profile/edit-community/edit-community.component.ts @@ -1,4 +1,4 @@ -import {Component, Input} from "@angular/core"; +import {Component} from "@angular/core"; import {FormBuilder, FormGroup, Validators} from "@angular/forms"; import {EnvProperties} from "../../../../openaireLibrary/utils/properties/env-properties"; import {properties} from "../../../../../environments/environment"; @@ -16,7 +16,6 @@ declare var UIkit; @Component({ selector: 'edit-community', template: ` -
@@ -64,13 +63,13 @@ declare var UIkit;
-
-
diff --git a/src/app/pages/community-info/profile/edit-community/edit-community.module.ts b/src/app/pages/community-info/profile/edit-community/edit-community.module.ts index aeaf66c..98561f3 100644 --- a/src/app/pages/community-info/profile/edit-community/edit-community.module.ts +++ b/src/app/pages/community-info/profile/edit-community/edit-community.module.ts @@ -3,11 +3,8 @@ import {EditCommunityComponent} from "./edit-community.component"; import {CommonModule} from "@angular/common"; import {ReactiveFormsModule} from "@angular/forms"; import {CKEditorModule} from 'ng2-ckeditor'; -// import { CKEditorModule } from 'ckeditor4-angular'; import {InputModule} from "../../../../openaireLibrary/sharedComponents/input/input.module"; import {IconsModule} from "../../../../openaireLibrary/utils/icons/icons.module"; -import {IconsService} from "../../../../openaireLibrary/utils/icons/icons.service"; -import {cloud_upload, edit, remove} from "../../../../openaireLibrary/utils/icons/icons"; @NgModule({ imports: [CommonModule, ReactiveFormsModule, InputModule, IconsModule @@ -16,9 +13,4 @@ import {cloud_upload, edit, remove} from "../../../../openaireLibrary/utils/icon declarations: [EditCommunityComponent], exports: [EditCommunityComponent] }) -export class EditCommunityModule { - - constructor(private iconsService: IconsService) { - this.iconsService.registerIcons([remove, edit, cloud_upload]) - } -} +export class EditCommunityModule {} diff --git a/src/app/pages/community-info/profile/profile.component.ts b/src/app/pages/community-info/profile/profile.component.ts index fcf599f..a9afa52 100644 --- a/src/app/pages/community-info/profile/profile.component.ts +++ b/src/app/pages/community-info/profile/profile.component.ts @@ -14,7 +14,9 @@ import {Subscription} from "rxjs";
-
Admin Dashboard - Manage Community Profile
+
Admin Dashboard - Manage Community + Profile +

{{community.shortTitle}}

@@ -22,7 +24,7 @@ import {Subscription} from "rxjs";
-
+
-
+
@@ -53,10 +55,10 @@ export class ProfileComponent implements OnInit, OnDestroy { public properties: EnvProperties = properties; public loading: boolean = false; private subscriptions: any[] = []; - @ViewChild('editCommunityComponent', { static: true }) editCommunityComponent: EditCommunityComponent; - + @ViewChild('editCommunityComponent', {static: true}) editCommunityComponent: EditCommunityComponent; + public stickyPageHeader: boolean = false; - + constructor(private communityService: CommunityService, private title: Title) { } diff --git a/src/app/pages/usernotifications/manage-user-notifications.component.html b/src/app/pages/usernotifications/manage-user-notifications.component.html index 1d973be..ec77f72 100644 --- a/src/app/pages/usernotifications/manage-user-notifications.component.html +++ b/src/app/pages/usernotifications/manage-user-notifications.component.html @@ -9,65 +9,69 @@
-
-
- - -
-
-
-
-
-
-
- Notify me for any changes in the managers list
- - {{userNotifications.notifyForNewManagers?' Enabled':'Disabled'}} - +
+
+
+
+ +
-
-
- Notify me for new members -
- - {{userNotifications.notifyForNewSubscribers?' Enabled':'Disabled'}} - -
-
-
-
-
- Notify me for any linking actions related to your community
- - {{notification.notify?' Enabled':'Disabled'}} - -
-
-
Set Notification Frequency
-
- +
+
+
+
+
+
+ Notify me for any changes in the managers list
+ + {{userNotifications.notifyForNewManagers?' Enabled':'Disabled'}} + +
+
+
+ Notify me for new members +
+ + {{userNotifications.notifyForNewSubscribers?' Enabled':'Disabled'}} + +
+
+
+
+
+ Notify me for any linking actions related to your community
+ + {{notification.notify?' Enabled':'Disabled'}} + +
+
+
Set Notification Frequency
+
+ +
+
+
+ +
-
- -
diff --git a/src/app/pages/usernotifications/manage-user-notifications.component.ts b/src/app/pages/usernotifications/manage-user-notifications.component.ts index edfcc40..533aab1 100644 --- a/src/app/pages/usernotifications/manage-user-notifications.component.ts +++ b/src/app/pages/usernotifications/manage-user-notifications.component.ts @@ -28,7 +28,7 @@ export class ManageUserNotificationsComponent implements OnInit { @Input('group') myForm: FormGroup; - public properties: EnvProperties = null; + public properties: EnvProperties = properties; public community: CommunityInfo; public userNotifications: UserNotificationsRights = null; public initialUserNotifications: UserNotificationsRights = null; @@ -52,9 +52,6 @@ export class ManageUserNotificationsComponent implements OnInit { } ngOnInit() { - - this.properties = properties; - HelperFunctions.scroll(); this.subscriptions.push(this.communityService.getCommunityAsObservable().subscribe(community => { if (community) { this.community = community; @@ -178,11 +175,6 @@ export class ManageUserNotificationsComponent implements OnInit { if (this.userNotifications.managerEmail) { userNotifications['managerEmail'] = this.userNotifications.managerEmail; } - // else { - // if (this.user) { - // userNotifications['managerEmail'] = this.user.email; - // } - // } return userNotifications; } diff --git a/src/app/pages/users/personal-info/personal-info.component.ts b/src/app/pages/users/personal-info/personal-info.component.ts index 4613f91..b0fb0fc 100644 --- a/src/app/pages/users/personal-info/personal-info.component.ts +++ b/src/app/pages/users/personal-info/personal-info.component.ts @@ -35,7 +35,7 @@ declare var UIkit;
-
+
-
-
My Affiliations
diff --git a/src/app/pages/users/personal-info/personal-info.module.ts b/src/app/pages/users/personal-info/personal-info.module.ts index 5910ab5..ac2f316 100644 --- a/src/app/pages/users/personal-info/personal-info.module.ts +++ b/src/app/pages/users/personal-info/personal-info.module.ts @@ -11,8 +11,6 @@ import {UsersTabsModule} from "../users-tabs.module"; import {LoadingModule} from "../../../openaireLibrary/utils/loading/loading.module"; import {InputModule} from "../../../openaireLibrary/sharedComponents/input/input.module"; import {IconsModule} from "../../../openaireLibrary/utils/icons/icons.module"; -import {IconsService} from "../../../openaireLibrary/utils/icons/icons.service"; -import {add, edit, photo, remove} from "../../../openaireLibrary/utils/icons/icons"; import {UrlPrefixModule} from "../../../openaireLibrary/utils/pipes/url-prefix.module"; import {HelpContentService} from "../../../services/help-content.service"; @@ -35,7 +33,4 @@ import {HelpContentService} from "../../../services/help-content.service"; }) export class PersonalInfoModule { - constructor(private iconsService: IconsService) { - this.iconsService.registerIcons([photo, edit, remove, add]) - } } diff --git a/src/assets/dashboard-theme b/src/assets/dashboard-theme index f79a0c8..8818983 160000 --- a/src/assets/dashboard-theme +++ b/src/assets/dashboard-theme @@ -1 +1 @@ -Subproject commit f79a0c8ddbbe2e0cb266034073513356fd801095 +Subproject commit 8818983564cb9e9232979af27fa568c18fa4eba8 diff --git a/src/assets/openaire-theme b/src/assets/openaire-theme index 8c45858..25f7f7d 160000 --- a/src/assets/openaire-theme +++ b/src/assets/openaire-theme @@ -1 +1 @@ -Subproject commit 8c4585873a56165631bee6b9d33d11fe83fc897c +Subproject commit 25f7f7dd34fae80d1e2e25935c2f2772c5800e70