Signed-off-by: Jason Etheridge <phasefx@gmail.com>
<button [disabled]="moveNodeUpDisabled" (click)="moveNodeUp()" i18n>Move Node Up</button>
<button [disabled]="moveNodeDownDisabled" (click)="moveNodeDown()" i18n>Move Node Down</button>
<button [disabled]="moveNodeElsewhereDisabled" (click)="moveNodeElsewhere()" i18n>Move Node Elsewhere</button>
+ <button *ngIf="!active" (click)="active = !active" i18n>Activate Tree</button>
+ <button *ngIf="active" (click)="active = !active" i18n>Deactivate Tree</button>
</eg-tree>
</div>
</div>
tree: Tree;
custom_tree: Tree;
+ active: boolean = false;
selected: TreeNode;
custom_selected: TreeNode;
orgUnitTab: string;
let tree_id: number;
if (tree_type) {
tree_id = tree_type.id();
+ this.active = tree_type.active();
} else {
tree_id = null;
}