4040 show if we have a message id and current user is author -->
4141 <NcActions v-if =" isOwnComment && id && !loading" class =" comment__actions" >
4242 <template v-if =" ! editing " >
43- <NcActionButton :close-after-click =" true"
44- icon =" icon-rename"
43+ <NcActionButton close-after-click
4544 @click =" onEdit" >
45+ <template #icon >
46+ <IconEdit :size =" 20" />
47+ </template >
4648 {{ t('comments', 'Edit comment') }}
4749 </NcActionButton >
4850 <NcActionSeparator />
49- <NcActionButton :close-after-click =" true"
50- icon =" icon-delete"
51+ <NcActionButton close-after-click
5152 @click =" onDeleteWithUndo" >
53+ <template #icon >
54+ <IconDelete :size =" 20" />
55+ </template >
5256 {{ t('comments', 'Delete comment') }}
5357 </NcActionButton >
5458 </template >
5559
56- <NcActionButton v-else
57- icon =" icon-close"
58- @click =" onEditCancel" >
60+ <NcActionButton v-else @click =" onEditCancel" >
61+ <template #icon >
62+ <IconClose :size =" 20" />
63+ </template >
5964 {{ t('comments', 'Cancel edit') }}
6065 </NcActionButton >
6166 </NcActions >
9095 :disabled =" isEmptyMessage"
9196 @click =" onSubmit" >
9297 <template #icon >
93- <span v-if =" loading" class = " icon-loading-small " />
94- <ArrowRight v-else :size =" 20" />
98+ <NcLoadingIcon v-if =" loading" />
99+ <IconArrowRight v-else :size =" 20" />
95100 </template >
96101 </NcButton >
97102 </div >
@@ -124,8 +129,13 @@ import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.
124129import NcAvatar from ' @nextcloud/vue/dist/Components/NcAvatar.js'
125130import NcButton from ' @nextcloud/vue/dist/Components/NcButton.js'
126131import NcDateTime from ' @nextcloud/vue/dist/Components/NcDateTime.js'
132+ import NcLoadingIcon from ' @nextcloud/vue/dist/Components/NcLoadingIcon.js'
127133import RichEditorMixin from ' @nextcloud/vue/dist/Mixins/richEditor.js'
128- import ArrowRight from ' vue-material-design-icons/ArrowRight.vue'
134+
135+ import IconArrowRight from ' vue-material-design-icons/ArrowRight.vue'
136+ import IconClose from ' vue-material-design-icons/Close.vue'
137+ import IconDelete from ' vue-material-design-icons/Delete.vue'
138+ import IconEdit from ' vue-material-design-icons/Pencil.vue'
129139
130140import CommentMixin from ' ../mixins/CommentMixin.js'
131141
@@ -136,13 +146,17 @@ export default {
136146 name: ' Comment' ,
137147
138148 components: {
139- ArrowRight,
149+ IconArrowRight,
150+ IconClose,
151+ IconDelete,
152+ IconEdit,
140153 NcActionButton,
141154 NcActions,
142155 NcActionSeparator,
143156 NcAvatar,
144157 NcButton,
145158 NcDateTime,
159+ NcLoadingIcon,
146160 NcRichContenteditable,
147161 },
148162 mixins: [RichEditorMixin, CommentMixin],
0 commit comments