mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ADF-4976] Fix variable being referenced before initialization (#4977)
This commit is contained in:
parent
023476e14f
commit
f3ab69474d
@ -15,7 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, ViewEncapsulation, EventEmitter, Input, Output } from '@angular/core';
|
import { Component, ViewEncapsulation, EventEmitter, Input, Output, OnInit } from '@angular/core';
|
||||||
import { NodeEntry, Node } from '@alfresco/js-api';
|
import { NodeEntry, Node } from '@alfresco/js-api';
|
||||||
import { NodePermissionService } from '../../services/node-permission.service';
|
import { NodePermissionService } from '../../services/node-permission.service';
|
||||||
import { NodesApiService, ContentService, AllowableOperationsEnum } from '@alfresco/adf-core';
|
import { NodesApiService, ContentService, AllowableOperationsEnum } from '@alfresco/adf-core';
|
||||||
@ -26,7 +26,7 @@ import { NodesApiService, ContentService, AllowableOperationsEnum } from '@alfre
|
|||||||
styleUrls: ['./add-permission.component.scss'],
|
styleUrls: ['./add-permission.component.scss'],
|
||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class AddPermissionComponent {
|
export class AddPermissionComponent implements OnInit {
|
||||||
|
|
||||||
/** ID of the target node. */
|
/** ID of the target node. */
|
||||||
@Input()
|
@Input()
|
||||||
@ -46,7 +46,9 @@ export class AddPermissionComponent {
|
|||||||
|
|
||||||
constructor(private nodePermissionService: NodePermissionService,
|
constructor(private nodePermissionService: NodePermissionService,
|
||||||
private nodeApiService: NodesApiService,
|
private nodeApiService: NodesApiService,
|
||||||
private contentService: ContentService) {
|
private contentService: ContentService) { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
this.nodeApiService.getNode(this.nodeId).subscribe((node) => this.currentNode = node);
|
this.nodeApiService.getNode(this.nodeId).subscribe((node) => this.currentNode = node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user