Skip to content

Commit

Permalink
[ACS-5551] minor change in code
Browse files Browse the repository at this point in the history
  • Loading branch information
AnukritiGL committed Sep 6, 2023
1 parent cb63d15 commit 4c79368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ app-details-manager {
display: flex;
align-items: center;
justify-content: space-between;
color: #212121;
color: var(--theme-selected-text-color);
}

.acs-details-breadcrumb {
Expand Down
6 changes: 3 additions & 3 deletions projects/aca-content/src/lib/services/node-actions.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,20 +587,20 @@ export class NodeActionsService {

isSmartFolder(node: Node): boolean {
const nodeAspects = this.getNodeAspectNames(node);
return nodeAspects.indexOf('smf:customConfigSmartFolder') > -1 || nodeAspects.indexOf('smf:systemConfigSmartFolder') > -1;
return nodeAspects.includes('smf:customConfigSmartFolder') || nodeAspects.includes('smf:systemConfigSmartFolder');
}

isRuleFolder(node: Node): boolean {
const nodeAspects = this.getNodeAspectNames(node);
return nodeAspects.indexOf('rule:rules') > -1;
return nodeAspects.includes('rule:rules');
}

isLinkFolder(node: Node): boolean {
const nodeType = node.nodeType;
return nodeType === 'app:folderlink';
}

private getNodeAspectNames(node: Node): any[] {
private getNodeAspectNames(node: Node): string[] {
return node.aspectNames ? node.aspectNames : [];
}

Expand Down

0 comments on commit 4c79368

Please sign in to comment.