mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[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:
@@ -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 || {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user