12
12
:menu-name =" variants.text"
13
13
:container =" $refs.taskTypeSelect"
14
14
:primary =" isCategorySelected(variants)"
15
+ :class =" { categoryWithSubSelected: isCategorySelected(variants) }"
15
16
@click =" onMenuCategorySelected(variants)" >
16
17
<NcActionButton v-for =" t in variants.tasks"
17
18
:key =" t.id"
30
31
</NcActions >
31
32
<NcButton v-else
32
33
:key =" variants.id + '-button'"
33
- :variant =" isCategorySelected(variants) ? 'primary' : 'secondary'"
34
+ variant =" secondary"
35
+ :class =" { categorySelected: isCategorySelected(variants) }"
34
36
:title =" variants.text"
35
37
@click =" onMenuCategorySelected(variants)" >
36
38
<template #icon >
73
75
</template >
74
76
75
77
<script >
76
- import NcActions from ' @nextcloud/vue/components/NcActions'
77
- import NcButton from ' @nextcloud/vue/components/NcButton'
78
- import NcActionButton from ' @nextcloud/vue/components/NcActionButton'
79
78
import MessageOutlineIcon from ' vue-material-design-icons/MessageOutline.vue'
80
79
import DotsHorizontalIcon from ' vue-material-design-icons/DotsHorizontal.vue'
81
80
import TextLongIcon from ' vue-material-design-icons/TextLong.vue'
82
81
import ImageOutlineIcon from ' vue-material-design-icons/ImageOutline.vue'
83
82
import WebIcon from ' vue-material-design-icons/Web.vue'
84
83
import FileIcon from ' vue-material-design-icons/File.vue'
84
+
85
85
import ContentPasteSearchIcon from ' ./icons/ContentPasteSearch.vue'
86
86
import WaveformIcon from ' ./icons/Waveform.vue'
87
87
88
+ import NcActions from ' @nextcloud/vue/components/NcActions'
89
+ import NcButton from ' @nextcloud/vue/components/NcButton'
90
+ import NcActionButton from ' @nextcloud/vue/components/NcActionButton'
91
+ import NcAssistantButton from ' @nextcloud/vue/components/NcAssistantButton'
92
+
88
93
export default {
89
94
name: ' TaskTypeSelect' ,
90
95
@@ -93,6 +98,7 @@ export default {
93
98
NcActionButton,
94
99
MessageOutlineIcon,
95
100
NcButton,
101
+ NcAssistantButton,
96
102
},
97
103
98
104
props: {
@@ -271,6 +277,18 @@ export default {
271
277
</script >
272
278
273
279
<style lang="scss">
280
+ .task-type-select {
281
+ .categorySelected ,
282
+ .categoryWithSubSelected button {
283
+ background : var (--color-element-assistant ) !important ;
284
+ color : white !important ;
285
+ border : none !important ;
286
+ padding-block : 0 !important ;
287
+ }
288
+ }
289
+ </style >
290
+
291
+ <style scoped lang="scss">
274
292
.task-type-select {
275
293
display : flex ;
276
294
align-items : center ;
0 commit comments