mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-] update library to use new js-api 3.0.0 (#4097)
This commit is contained in:
committed by
Eugenio Romano
parent
2acd1b4e26
commit
3ef7d3b7ea
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { NodeEntry } from 'alfresco-js-api';
|
||||
import { NodeEntry } from '@alfresco/js-api';
|
||||
|
||||
export class TreeBaseNode {
|
||||
|
||||
@@ -25,10 +25,12 @@ export class TreeBaseNode {
|
||||
expandable = true;
|
||||
node: NodeEntry;
|
||||
|
||||
constructor(nodeEntry: NodeEntry, level?: number) {
|
||||
constructor(nodeEntry: NodeEntry, level?: number, expandable?: boolean) {
|
||||
this.name = nodeEntry.entry.name;
|
||||
this.level = level ? level : 0;
|
||||
this.nodeId = nodeEntry.entry.id;
|
||||
this.node = nodeEntry;
|
||||
this.level = level ? level : 0;
|
||||
this.expandable = expandable ? expandable : true;
|
||||
this.node = nodeEntry ? new NodeEntry(nodeEntry) : undefined;
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user