Skip to content

Commit 55eba2a

Browse files
committed
netopeerangular: hides the valueType selector in css
1 parent e95cc15 commit 55eba2a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/js/directives2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ NetopeerGUI.directive('ngModelOnblur', function() {
5959
var enumerationName = "Enumeration";
6060
var literalName = "Literal";
6161

62-
scope.valueTypes = [stringName, objectName, arrayName, listName, numberName, urlName, refName, boolName, enumerationName, literalName];
62+
scope.valueTypes = [literalName, stringName, objectName, arrayName, listName, numberName, boolName, enumerationName];
6363
scope.sortableOptions = {
6464
axis: 'y',
6565
update: function(e, ui) {

src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/public/templates.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/templates/directives/addItem.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
<span ng-show="$parent.type !== 'List' && $parent.type !== 'Array'">
44
<input placeholder="{{ typeaheadNoResults ? 'No name available' : 'Type a letter' }}" type="text"
55
class="form-control input-sm addItemKeyInput" ng-model="$parent.keyName" autocomplete="off" uib-typeahead="subchild for subchild in getAvailableNodeNames(key, child, $parent)" typeahead-min-length="0" typeahead-loading="loadingResponses" typeahead-no-results="typeaheadNoResults" typeahead-focus ng-blur="changeParentKeyName($parent.keyName, child, $parent);showSelectbox = true"
6-
/> :
6+
/>
77
</span>
88

99
<span class="editbar" ng-if="child['$@'+$parent.keyName]">
1010
<i class="iconButton fa fa-question-circle" tooltip-placement="top" uib-tooltip="{{child['$@'+$parent.keyName]['description']}}" ng-if="child['$@'+$parent.keyName]['description']"></i>
1111
<i class="iconButton fa fa-asterisk red" tooltip-placement="top" uib-tooltip="Mandatory" ng-if="isMandatory($parent.keyName, child)"></i>
1212
</span>
1313

14-
<select ng-model="$parent.valueType" ng-options="option for option in valueTypes" class="form-control input-sm" ng-show="showSelectbox && $parent.type !== 'List' && $parent.type !== 'Array' && $parent.keyName" ng-init="initParentValueType($parent)"></select>
15-
14+
<select ng-model="$parent.valueType" ng-options="option for option in valueTypes" class="form-control input-sm hidden" ng-show="showSelectbox && $parent.type !== 'List' && $parent.type !== 'Array' && $parent.keyName" ng-init="initParentValueType($parent)"></select>
1615
<span ng-show="$parent.type === 'Array' || ($parent.keyName && $parent.valueType !== 'Object' && $parent.valueType !== 'List' && $parent.valueType !== 'Array' && $parent.valueType !== 'string:Object' && $parent.valueType !== 'string:List' && $parent.valueType !== 'string:Array' && $parent.type !== 'List')">
1716
<input type="{{ $parent.valueType == 'string:Number' || $parent.valueType == 'Number' ? 'number' : $parent.valueType == 'string:Boolean' || $parent.valueType == 'Boolean' ? 'checkbox' : 'text' }}" ng-model="newValueName" ng-blur="changeParentValueName(newValueName, child, $parent)" placeholder="Set a value" ng-show="!($parent.valueType == 'string:Enumeration' || $parent.valueType == 'Enumeration')">
1817
<select ng-model="selectboxValue" ng-options="option for option in getEnumValues($parent.keyName, child, $parent) track by option" ng-if="$parent.valueType == 'string:Enumeration' || $parent.valueType == 'Enumeration'" ng-blur="$parent.valueName = selectboxValue;"></select>

0 commit comments

Comments
 (0)