OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#42158] switched to behaviour subject for stable state
Eric Schubertfeae370ed74b
diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.tsindex 42a6f2721be..350cf7fb0b9 100644--- a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts@@ -29,7 +29,7 @@import {ChangeDetectionStrategy, Component, Input, OnInit,} from '@angular/core';-import { Observable, Subject } from 'rxjs';+import { BehaviorSubject, Observable } from 'rxjs';import { HalResource } from 'core-app/features/hal/resources/hal-resource';import { IFileLink } from 'core-app/core/state/file-links/file-link.model';import { IStorage } from 'core-app/core/state/storages/storage.model';@@ -61,9 +61,9 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInitallowEditing = false;- showInformationBox$ = new Subject<boolean>();+ showInformationBox$ = new BehaviorSubject<boolean>(false);- showFileLinks$ = new Subject<boolean>();+ showFileLinks$ = new BehaviorSubject<boolean>(false);private readonly storageTypeMap:{ [urn:string]:string; } = {'urn:openproject-org:api:v3:storages:Nextcloud': 'Nextcloud',@@ -134,7 +134,7 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInit}private deriveStorageInformation(fileLinkCount:number):void {- switch (this.storage._links?.connectionState.href) {+ switch (this.storage._links.connectionState.href) {case 'urn:openproject-org:api:v3:storages:connection:FailedAuthentication':this.setAuthenticationFailureState(fileLinkCount);break;