The metadata submit button ignore filtering
The updated metadatas must have a value when updating.
Otherwise the submit button will be disabled.
But, if we filter out those ones without value, the button is okay.
This problem becauses those filtered out metadatas were removed.
Now, we just hidden them.
Closes-Bug:
</div>
</div>
<ul class="list-group metadata-list-group" ng-form="ctrl.metadataForm" ng-cloak>
- <li ng-repeat="item in existingList = (ctrl.tree.flatTree | filter:{$:ctrl.filterText.existing, added:true, leaf:'!false'} | orderBy:'leaf.name')"
+ <li ng-repeat="item in existingList = (ctrl.tree.flatTree | filter:{added:true, leaf:'!false'} | orderBy:'leaf.name')"
+ ng-show="(ctrl.tree.flatTree | filter:{$:ctrl.filterText.existing}).indexOf(item) >= 0"
ng-class="{'active': ctrl.tree.selected===item}"
ng-class-odd="'dark-stripe'"
ng-class-even="'light-stripe'"
