2574 Filter tag by composed color #443
|
@ -23,11 +23,12 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-show="tag.selection.isFree == false"
|
ng-show="tag.selection.isFree == false"
|
||||||
url="{{$ctrl.getSourceTable(tag.selection)}}"
|
url="{{'Tags/' + tag.selection.id + '/filterValue'}}"
|
||||||
|
search-function="{value: $search}"
|
||||||
label="Value"
|
label="Value"
|
||||||
ng-model="tagValue.value"
|
ng-model="tagValue.value"
|
||||||
show-field="name"
|
show-field="value"
|
||||||
value-field="name">
|
value-field="value">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-icon-button
|
<vn-icon-button
|
||||||
vn-none
|
vn-none
|
||||||
|
|
|
@ -21,18 +21,6 @@ class Controller extends SearchPanel {
|
||||||
this.$.filter = value;
|
this.$.filter = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
getSourceTable(selection) {
|
|
||||||
if (!selection || selection.isFree == true)
|
|
||||||
return null;
|
|
||||||
|
|
||||||
if (selection.sourceTable) {
|
|
||||||
return ''
|
|
||||||
+ selection.sourceTable.charAt(0).toUpperCase()
|
|
||||||
+ selection.sourceTable.substring(1) + 's';
|
|
||||||
} else if (selection.sourceTable == null)
|
|
||||||
return `ItemTags/filterItemTags/${selection.id}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
addValue() {
|
addValue() {
|
||||||
this.filter.values.push({});
|
this.filter.values.push({});
|
||||||
setTimeout(() => this.popover.relocate());
|
setTimeout(() => this.popover.relocate());
|
||||||
|
|
Loading…
Reference in New Issue