2 ~ Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
8 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
18 data-tests-id="linkSrc"
19 [readonly]="!link.isFirst || (link.isFirst && !link.canEdit)"
20 class="cell link-selector"
22 [(value)]="link.fromNode"
23 (valueChange)="onSourceSelected($event)">
24 </ui-element-dropdown>
27 data-tests-id="linkSrcCP"
28 [readonly]="!link.isFirst || (link.isFirst && !link.canEdit)"
29 class="cell link-selector"
31 [(value)]="link.fromCP"
32 (valueChange)="onSrcCPSelected($event)">
33 </ui-element-dropdown>
36 data-tests-id="linkTarget"
37 [readonly]="!link.canEdit"
38 class="cell link-selector"
40 [(value)]="link.toNode"
41 (valueChange)="onTargetSelected($event)">
42 </ui-element-dropdown>
45 data-tests-id="linkTargetCP"
46 [readonly]="!link.canEdit"
47 class="cell link-selector"
50 (valueChange)="onTargetCPSelected($event)">
51 </ui-element-dropdown>
55 data-tests-id="removeLnk">
57 *ngIf="link.canRemove"
58 class="sprite-new delete-item-icon"
59 (click)="removeRow()">