@ -36,7 +36,8 @@ angular.module('openproject.uiComponents')
scope: {
name: '=',
values: '=',
availableOptions: '='
availableOptions: '=',
disabled: '='
},
templateUrl: '/templates/components/toggled_multiselect.html',
link: function(scope, element, attributes){
@ -244,8 +244,8 @@ angular.module('openproject.models')
this.filters.splice(this.getFilterNames().indexOf(filterName), 1);
deactivateFilter: function(filter, loading) {
if (!loading) filter.deactivated = true;
deactivateFilter: function(filter) {
filter.deactivated = true;
getFilterType: function(filterName) {
@ -3,6 +3,7 @@
ng-show="!isMultiselect"
name="v[{{name}}][]"
ng-model="values"
ng-disabled="disabled"
id="values-{{name}}"
class="select-small"
style="vertical-align: top;"
@ -15,6 +16,7 @@
ng-show="isMultiselect"
@ -135,7 +135,7 @@
name="filter.name"
values="filter.values"
is-multiselect="false"
ng-disabled="isLoading"/>
disabled="isLoading"/>
</div>
</td>
@ -144,7 +144,7 @@
<td>
<icon-wrapper icon-name="delete2"
icon-title="{{I18n.t('js.button_delete')}}"
ng-click="query.deactivateFilter(filter, loading)"/>
ng-click="query.deactivateFilter(filter)"/>
<!-- TODO I18n -->
</tr>