1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00

(feat) hide machines/themes/components filter in project list if machines module is disable or themes/components is empty

This commit is contained in:
Du Peng 2024-02-19 14:32:41 +01:00
parent 015a1d7532
commit 8686931ef3
2 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@
- Fix a bug: missing payment transfer journal code in accouting line
- Fix a bug: unable to sync iCalendar correctly
- improvement: add settlement by transfer/check to invoice paiement info
- improvement: hide machines/themes/components filter in project list if machines module is disable or themes/components is empty
## v6.3.12 2024 February 12

View File

@ -53,11 +53,11 @@
<option value="collaboration" translate>{{ 'app.public.projects_list.projects_to_whom_i_take_part_in' }}</option>
</select>
<select ng-model="search.machine_id" ng-change="setUrlQueryParams(search) && triggerSearch()" class="form-control" ng-options="m.id as m.name for m in machines">
<select ng-show="$root.modules.machines" ng-model="search.machine_id" ng-change="setUrlQueryParams(search) && triggerSearch()" class="form-control" ng-options="m.id as m.name for m in machines">
<option value="" translate>{{ 'app.public.projects_list.all_machines' }}</option>
</select>
<select ng-model="search.theme_id" ng-change="setUrlQueryParams(search) && triggerSearch()" class="form-control" ng-options="t.id as t.name for t in themes">
<select ng-show="themes.length" ng-model="search.theme_id" ng-change="setUrlQueryParams(search) && triggerSearch()" class="form-control" ng-options="t.id as t.name for t in themes">
<option value="" translate>{{ 'app.public.projects_list.all_themes' }}</option>
</select>
@ -65,7 +65,7 @@
<option value="" translate>{{ projectCategoriesFilterPlaceholder }}</option>
</select>
<select ng-model="search.component_id" ng-change="setUrlQueryParams(search) && triggerSearch()" class="form-control" ng-options="t.id as t.name for t in components">
<select ng-show="components.length" ng-model="search.component_id" ng-change="setUrlQueryParams(search) && triggerSearch()" class="form-control" ng-options="t.id as t.name for t in components">
<option value="" translate>{{ 'app.public.projects_list.all_materials' }}</option>
</select>