function init() {
yangList.disableAddingListElement = $scope.checkAddingListElement($scope.node);
- if(yangList.disableAddingListElement && !$scope.node.listData.length) {
+ if(yangList.disableAddingListElement &&
+ !$scope.node.listData.length &&
+ $scope.selectedDatastore.label === 'config') {
+
yangList.addListElem();
}
}
// try to fill node, if some was found or filled in form
if ( $scope.node ) {
+ $scope.node.clear();
YangmanService.fillNodeFromResponse($scope.node, response.data);
$scope.node.expanded = true;
}
<!-- Choice select -->
<md-input-container>
- <md-select ng-model="node.choice">
+ <md-select ng-model="node.choice" aria-label="Choice select">
<md-option ng-repeat="node in node.getChildren(null, null, constants.NODE_UI_DISPLAY) | filter:caseShowing" ng-value="node">
{{node.label}}
</md-option>
<!-- Leaf list values -->
<md-input-container md-no-float class="input-icon-container">
<!-- input -->
- <input ng-change="yangLeafList.changed()" ng-model="elem.value">
+ <input ng-change="yangLeafList.changed()" ng-model="elem.value" aria-label="{{elem.value}}">
<!-- remove Icon -->
<md-icon md-font-set="material-icons" class="top-icon top-element pointer" ng-click="yangLeafList.removeListElem(elem)">
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
\ No newline at end of file
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
\ No newline at end of file
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<md-input-container md-no-float>
- <input ng-change="yangType.valueChanged()" ng-model="node.value" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
+ <input ng-change="yangType.valueChanged()" ng-model="node.value" aria-label="{{node.value}}" placeholder="{{type.label}}" ng-disabled="{{ yangOutput.notEditable }}">
<md-tooltip md-direction="top">{{type.label}}</md-tooltip>
</md-input-container>
<!-- Choice select -->
<md-input-container>
- <input ng-model="node.choice.label" ng-disabled="true">
+ <input ng-model="node.choice.label" aria-label="{{node.choice.label}}" ng-disabled="true">
</md-input-container>
</div>
<!-- Leaf list values -->
<md-input-container md-no-float class="input-icon-container">
<!-- input -->
- <input ng-model="elem.value" ng-disabled="true">
+ <input ng-model="elem.value" aria-label="{{elem.value}}" ng-disabled="true">
</md-input-container>
</div>
</div>
\ No newline at end of file
<div class="menu-placeholder" ng-if="!yanfLeaf.isActionMenu() && !yanfLeaf.isNodeInfo()"></div>
<md-input-container>
- <input ng-model="node.value" ng-disabled="true">
+ <input ng-model="node.value" aria-label="{{node.value}}" ng-disabled="true">
</md-input-container>
</div>
\ No newline at end of file
<input type="text"
class="input-identifier"
ng-change="requestHeader.fillNodeData(pathElem, identifier)"
- ng-model="identifier.value">
+ ng-model="identifier.value"
+ aria-label="{{identifier.value}}">
</md-input-container>
</div>