|
39 | 39 | width="150" |
40 | 40 | /> |
41 | 41 | </template> |
42 | | - <SelectFilter |
43 | | - v-if="loadingEndpoints !== true && loadingEndpoints.campCollaborations !== true" |
44 | | - v-model="value.responsible" |
45 | | - multiple |
46 | | - and-filter |
47 | | - :items="campCollaborations" |
48 | | - :display-field="campCollaborationDisplayName" |
49 | | - :label="$tc('components.program.scheduleEntryFilters.responsible')" |
50 | | - @input="(val) => updateFilter({ responsible: val })" |
51 | | - > |
52 | | - <template #item="{ item }"> |
53 | | - <template v-if="item.exclusiveNone"> |
54 | | - {{ item.text }} |
55 | | - </template> |
56 | | - <template v-else> |
57 | | - <TextAlignBaseline class="mr-1"> |
58 | | - <UserAvatar :camp-collaboration="campCollaborations[item.value]" size="20" /> |
59 | | - </TextAlignBaseline> |
60 | | - {{ item.text }} |
| 42 | + <template v-if="!hideCollaboratorFilter"> |
| 43 | + <SelectFilter |
| 44 | + v-if="loadingEndpoints !== true && loadingEndpoints.campCollaborations !== true" |
| 45 | + v-model="value.responsible" |
| 46 | + multiple |
| 47 | + and-filter |
| 48 | + :items="campCollaborations" |
| 49 | + :display-field="campCollaborationDisplayName" |
| 50 | + :label="$tc('components.program.scheduleEntryFilters.responsible')" |
| 51 | + @input="(val) => updateFilter({ responsible: val })" |
| 52 | + > |
| 53 | + <template #item="{ item }"> |
| 54 | + <template v-if="item.exclusiveNone"> |
| 55 | + {{ item.text }} |
| 56 | + </template> |
| 57 | + <template v-else> |
| 58 | + <TextAlignBaseline class="mr-1"> |
| 59 | + <UserAvatar |
| 60 | + :camp-collaboration="campCollaborations[item.value]" |
| 61 | + size="20" |
| 62 | + /> |
| 63 | + </TextAlignBaseline> |
| 64 | + {{ item.text }} |
| 65 | + </template> |
61 | 66 | </template> |
62 | | - </template> |
63 | | - </SelectFilter> |
64 | | - <v-skeleton-loader |
65 | | - v-else |
66 | | - type="button" |
67 | | - class="v-skeleton-loader--inherit-size" |
68 | | - height="32" |
69 | | - width="130" |
70 | | - /> |
| 67 | + </SelectFilter> |
| 68 | + <v-skeleton-loader |
| 69 | + v-else |
| 70 | + type="button" |
| 71 | + class="v-skeleton-loader--inherit-size" |
| 72 | + height="32" |
| 73 | + width="130" |
| 74 | + /> |
| 75 | + </template> |
71 | 76 | <SelectFilter |
72 | 77 | v-if="loadingEndpoints !== true && loadingEndpoints.categories !== true" |
73 | 78 | v-model="value.category" |
@@ -194,6 +199,10 @@ export default { |
194 | 199 | type: Boolean, |
195 | 200 | default: false, |
196 | 201 | }, |
| 202 | + hideCollaboratorFilter: { |
| 203 | + type: Boolean, |
| 204 | + default: false, |
| 205 | + }, |
197 | 206 | hideDayFilter: { |
198 | 207 | type: Boolean, |
199 | 208 | default: false, |
|
0 commit comments