Add notifications to prodcution

This commit is contained in:
Konstantinos Triantafyllou 2021-08-02 18:12:10 +03:00
parent 34fe82e26b
commit a2281dca42
4 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@
[centered]="true" [properties]="properties" [showMenuItems]="true"></bottom>
<role-verification *ngIf="stakeholder"
[id]="stakeholder.alias" [name]="stakeholder.name" [type]="stakeholder.type"></role-verification>
<notification-sidebar *ngIf="properties.environment !== 'production' && user && notificationGroupsInitialized"
<notification-sidebar *ngIf="user && notificationGroupsInitialized"
[user]="user" [availableGroups]="notificationGroups" service="monitor"></notification-sidebar>
</div>
</div>

View File

@ -180,7 +180,7 @@ export class AppComponent implements OnInit, OnDestroy {
this.user = user;
if (user) {
this.buildMenu();
if(!this.notificationGroupsInitialized && this.properties.environment !== 'production') {
if(!this.notificationGroupsInitialized) {
this.setNotificationGroups();
}
}

@ -1 +1 @@
Subproject commit 0ec7b820ee4fef91eeac7553539482a8a7fbaf94
Subproject commit 25ea02d4a043aa5ca2053b17ef32ed497c1a49ec

View File

@ -10,7 +10,7 @@
</ul>
</ng-template>
<role-users *ngIf="!loading && alias" [id]="alias" [type]="type" [name]="name" [link]="link" [role]="tab" [message]="messages.get(tab)"
[emailComposer]="emailComposer" [notificationFn]="(properties.environment !== 'production')?notificationFn:null">
[emailComposer]="emailComposer" [notificationFn]="notificationFn">
<ng-container [ngTemplateOutlet]="tabs"></ng-container>
</role-users>