[MNT-25522] Add support for 'Link document' functionality (#5195)

* [MNT-25522] Add 'Link document' functionality

* [MNT-25522] address copilot comments

* [MNT-25522] cr fixes

* [MNT-25522] address code smell
This commit is contained in:
Mykyta Maliarchuk
2026-05-22 17:10:40 +02:00
committed by GitHub
parent c4ff14f359
commit 286bf1b9b4
23 changed files with 1100 additions and 100 deletions
@@ -23,8 +23,8 @@
*/
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
import { SiteEntry } from '@alfresco/js-api';
import { BehaviorSubject, Subject } from 'rxjs';
import { NodeEntry, SiteEntry } from '@alfresco/js-api';
@Injectable({
providedIn: 'root'
@@ -84,4 +84,9 @@ export class AppHookService {
* Gets emitted when user mark the favorite library
*/
favoriteLibraryToggle = new Subject<void>();
/**
* Holds the node that should be pre-selected in the document list after navigation.
*/
nodeToSelect$ = new BehaviorSubject<NodeEntry | null>(null);
}
@@ -114,7 +114,7 @@ export class ContentApiService {
*/
getNode(nodeId: string, options: any = {}): Observable<NodeEntry> {
const defaults = {
include: ['path', 'properties', 'allowableOperations', 'permissions', 'definition']
include: ['path', 'properties', 'allowableOperations', 'permissions', 'definition', 'isLink']
};
const queryOptions = Object.assign(defaults, options);
@@ -123,7 +123,7 @@ export class ContentApiService {
getNodeInfo(nodeId: string, options?: any): Observable<Node> {
const defaults = {
include: ['isFavorite', 'allowableOperations', 'path', 'definition']
include: ['isFavorite', 'allowableOperations', 'path', 'definition', 'isLink']
};
const queryOptions = Object.assign(defaults, options || {});