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
43+ <NcActionButton :close-after-click =" true"
44+ icon =" icon-rename"
4445 @click =" onEdit" >
45- <template #icon >
46- <IconEdit :size =" 20" />
47- </template >
4846 {{ t('comments', 'Edit comment') }}
4947 </NcActionButton >
5048 <NcActionSeparator />
51- <NcActionButton close-after-click
49+ <NcActionButton :close-after-click =" true"
50+ icon =" icon-delete"
5251 @click =" onDeleteWithUndo" >
53- <template #icon >
54- <IconDelete :size =" 20" />
55- </template >
5652 {{ t('comments', 'Delete comment') }}
5753 </NcActionButton >
5854 </template >
5955
60- <NcActionButton v-else @click =" onEditCancel" >
61- <template #icon >
62- <IconClose :size =" 20" />
63- </template >
56+ <NcActionButton v-else
57+ icon =" icon-close"
58+ @click =" onEditCancel" >
6459 {{ t('comments', 'Cancel edit') }}
6560 </NcActionButton >
6661 </NcActions >
9287 :disabled =" isEmptyMessage"
9388 @click =" onSubmit" >
9489 <template #icon >
95- <NcLoadingIcon v-if =" loading" />
96- <IconArrowRight v-else :size =" 20" />
90+ <span v-if =" loading" class = " icon-loading-small " />
91+ <ArrowRight v-else :size =" 20" />
9792 </template >
9893 </NcButton >
9994 </div >
@@ -127,11 +122,7 @@ import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.
127122import NcAvatar from ' @nextcloud/vue/dist/Components/NcAvatar.js'
128123import NcButton from ' @nextcloud/vue/dist/Components/NcButton.js'
129124import RichEditorMixin from ' @nextcloud/vue/dist/Mixins/richEditor.js'
130-
131- import IconArrowRight from ' vue-material-design-icons/ArrowRight.vue'
132- import IconClose from ' vue-material-design-icons/Close.vue'
133- import IconDelete from ' vue-material-design-icons/Delete.vue'
134- import IconEdit from ' vue-material-design-icons/Pencil.vue'
125+ import ArrowRight from ' vue-material-design-icons/ArrowRight.vue'
135126
136127import Moment from ' ./Moment.vue'
137128import CommentMixin from ' ../mixins/CommentMixin.js'
@@ -143,16 +134,13 @@ export default {
143134 name: ' Comment' ,
144135
145136 components: {
146- IconArrowRight,
147- IconClose,
148- IconDelete,
149- IconEdit,
150- Moment,
151137 NcActionButton,
152138 NcActions,
153139 NcActionSeparator,
140+ ArrowRight,
154141 NcAvatar,
155142 NcButton,
143+ Moment,
156144 NcRichContenteditable,
157145 },
158146 mixins: [RichEditorMixin, CommentMixin],
0 commit comments