@@ -52,7 +52,7 @@ export class TreeCreate {
52
52
@Input ( ) indentation ;
53
53
@Input ( ) activeSession : Session ;
54
54
55
- constructor ( private modsService : ModificationsService , private sessionsService : SessionsService ) { }
55
+ constructor ( public modsService : ModificationsService , public sessionsService : SessionsService ) { }
56
56
57
57
closeCreatingDialog ( node , abort :boolean = true ) {
58
58
this . modsService . createClose ( this . activeSession , node , abort ) ;
@@ -77,9 +77,9 @@ export class TreeEdit {
77
77
@Input ( ) indentation ;
78
78
@Input ( ) activeSession : Session ;
79
79
80
- constructor ( private treeService : TreeService ,
81
- private modsService : ModificationsService ,
82
- private sessionsService : SessionsService ) { }
80
+ constructor ( public treeService : TreeService ,
81
+ public modsService : ModificationsService ,
82
+ public sessionsService : SessionsService ) { }
83
83
84
84
changeValueCancel ( node ) {
85
85
if ( 'value' in node ) {
@@ -165,15 +165,14 @@ export class TreeEdit {
165
165
} )
166
166
export class TreeIndent implements OnInit {
167
167
@Input ( ) node ;
168
- @Input ( ) value ;
169
168
@Input ( ) indentation ;
170
169
@Input ( ) type ;
171
170
activeSession : Session ;
172
171
private timeout ;
173
172
174
- constructor ( private treeService : TreeService ,
175
- private modsService : ModificationsService ,
176
- private sessionsService : SessionsService ) { }
173
+ constructor ( public treeService : TreeService ,
174
+ public modsService : ModificationsService ,
175
+ public sessionsService : SessionsService ) { }
177
176
178
177
ngOnInit ( ) : void {
179
178
this . activeSession = this . sessionsService . getSession ( ) ;
@@ -265,7 +264,7 @@ export class TreeIndent implements OnInit {
265
264
selector : 'tree-leaflist-value' ,
266
265
template : `
267
266
<div class="node yang-leaflist-value" [class.dirty]="node['dirty']" [class.deleted]="modsService.isDeleted(node, true)">
268
- <tree-indent [node]="node" [indentation]="treeService.inheritIndentation(indentation, node)" [type]="'value'" [value]="value" ></tree-indent>
267
+ <tree-indent [node]="node" [indentation]="treeService.inheritIndentation(indentation, node)" [type]="'value'"></tree-indent>
269
268
<div class="value_standalone">{{node['value']}}</div>
270
269
</div>
271
270
<tree-edit *ngIf="node['edit']" [node]="node" [indentation]="indentation" [activeSession]="activeSession"></tree-edit>` ,
@@ -277,8 +276,8 @@ export class TreeLeaflistValue {
277
276
@Input ( ) activeSession : Session ;
278
277
@Input ( ) indentation ;
279
278
280
- constructor ( private modsService : ModificationsService ,
281
- private treeService : TreeService ) { }
279
+ constructor ( public modsService : ModificationsService ,
280
+ public treeService : TreeService ) { }
282
281
}
283
282
284
283
@Component ( {
@@ -292,10 +291,10 @@ export class TreeNode {
292
291
@Input ( ) indentation ;
293
292
@Input ( ) activeSession : Session ;
294
293
295
- constructor ( private modsService : ModificationsService ,
296
- private sessionsService : SessionsService ,
297
- private treeService : TreeService ,
298
- private schemasService : SchemasService ,
294
+ constructor ( public modsService : ModificationsService ,
295
+ public sessionsService : SessionsService ,
296
+ public treeService : TreeService ,
297
+ public schemasService : SchemasService ,
299
298
private changeDetector : ChangeDetectorRef ,
300
299
private router : Router ) { }
301
300
@@ -371,9 +370,9 @@ export class TreeView implements OnInit {
371
370
@Input ( ) indentation ;
372
371
activeSession : Session ;
373
372
374
- constructor ( private modsService : ModificationsService ,
375
- private sessionsService : SessionsService ,
376
- private treeService : TreeService ) { }
373
+ constructor ( public modsService : ModificationsService ,
374
+ public sessionsService : SessionsService ,
375
+ public treeService : TreeService ) { }
377
376
378
377
ngOnInit ( ) : void {
379
378
this . activeSession = this . sessionsService . getSession ( ) ;
0 commit comments