77 <Fragment >
88 <NcAppNavigationItem
99 :name =" t (' notes' , ' All notes' )"
10+ :active =" selectedCategory === null "
1011 :draggable =" false "
1112 :class =" {
12- active: selectedCategory === null ,
1313 ' drop-over' : dragOverAllNotes ,
1414 ' category-no-actions' : true ,
1515 } "
3636 ref="newCategoryItem"
3737 :name =" ' ' "
3838 :draggable =" false "
39- :icon =" ' icon-files' "
4039 :editable =" true "
4140 :edit-label =" t (' notes' , ' Rename category' )"
4241 :edit-placeholder =" t (' notes' , ' New category' )"
4342 :force-menu =" true "
4443 :force-display-actions =" true "
45- menu-icon="icon-more"
4644 class="category-draft"
4745 @click .prevent .stop
4846 @dragstart .native =" onCategoryDragStart "
6159 <NcAppNavigationItem v-for =" category in categories "
6260 :key =" category .name "
6361 :name =" categoryTitle (category .name )"
62+ :active =" category .name === selectedCategory "
6463 :draggable =" false "
65- :icon =" category .name === ' ' ? ' icon-emptyfolder' : ' icon-files' "
6664 :editable =" category .name !== ' ' "
6765 :edit-label =" t (' notes' , ' Rename category' )"
6866 :edit-placeholder =" category .name "
6967 :force-menu =" category .name !== ' ' "
7068 :force-display-actions =" category .name !== ' ' "
71- menu-icon="icon-more"
7269 :class =" {
73- active: category .name === selectedCategory ,
7470 ' drop-over' : category .name === dragOverCategory ,
7571 ' category-no-actions' : category .name === ' ' ,
7672 } "
8278 @update :name =" onRenameCategory (category .name , $event )"
8379 >
8480 <template #icon >
85- <FolderOutlineIcon v-if =" category .name === ' ' " :size =" 20 " />
86- <FolderIcon v-else :size =" 20 " />
81+ <FolderIcon v-if =" category .name === selectedCategory " :size =" 20 " />
82+ <FolderOutlineIcon v-else :size =" 20 " />
8783 </template >
8884 <template #counter >
8985 <NcCounterBubble >
9288 </template >
9389 <template v-if =" category .name !== ' ' " #actions >
9490 <NcActionButton
95- icon="icon-delete"
9691 :close-after-click =" true "
9792 @click =" onDeleteCategory (category .name )"
9893 >
94+ <template #icon >
95+ <DeleteIcon :size =" 20 " />
96+ </template >
9997 {{ t('notes', 'Delete category') }}
10098 </NcActionButton >
10199 </template >
@@ -112,6 +110,7 @@ import { Fragment } from 'vue-frag'
112110import { showConfirmation } from ' @nextcloud/dialogs'
113111import { subscribe , unsubscribe } from ' @nextcloud/event-bus'
114112
113+ import DeleteIcon from ' vue-material-design-icons/Delete.vue'
115114import FolderIcon from ' vue-material-design-icons/Folder.vue'
116115import FolderOutlineIcon from ' vue-material-design-icons/FolderOutline.vue'
117116import HistoryIcon from ' vue-material-design-icons/History.vue'
@@ -124,6 +123,7 @@ export default {
124123 name: ' CategoriesList' ,
125124
126125 components: {
126+ DeleteIcon,
127127 Fragment,
128128 NcActionButton,
129129 NcAppNavigationItem,
@@ -457,10 +457,6 @@ export default {
457457}
458458< / script>
459459< style lang= " scss" scoped>
460- .app - navigation- entry- wrapper .active : deep (.app - navigation - entry ) {
461- background- color: var (-- color- primary- element- light) ! important;
462- }
463-
464460.app - navigation- entry- wrapper .drop - over: deep (.app - navigation - entry ) {
465461 background- color: var (-- color- primary- element- light) ! important;
466462 outline: 2px dashed var (-- color- primary- element);
0 commit comments