From 93650e089f6157333e805a6ec47c9fb893e8bcf6 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 13 Jun 2024 18:13:45 +0200 Subject: [PATCH] fix(comments): Use proper icon components instead of icon classes to fix dark mode Signed-off-by: Ferdinand Thiessen --- apps/comments/src/components/Comment.vue | 36 +++++++++++++------ .../src/views/ActivityCommentEntry.vue | 3 +- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index c883f9b848b..8c6287d9ecb 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -23,22 +23,27 @@ show if we have a message id and current user is author --> - + + {{ t('comments', 'Cancel edit') }} @@ -73,8 +78,8 @@ :disabled="isEmptyMessage" @click="onSubmit"> @@ -107,8 +112,13 @@ import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator. import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import NcDateTime from '@nextcloud/vue/dist/Components/NcDateTime.js' +import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js' import RichEditorMixin from '@nextcloud/vue/dist/Mixins/richEditor.js' -import ArrowRight from 'vue-material-design-icons/ArrowRight.vue' + +import IconArrowRight from 'vue-material-design-icons/ArrowRight.vue' +import IconClose from 'vue-material-design-icons/Close.vue' +import IconDelete from 'vue-material-design-icons/Delete.vue' +import IconEdit from 'vue-material-design-icons/Pencil.vue' import CommentMixin from '../mixins/CommentMixin.js' @@ -119,13 +129,17 @@ export default { name: 'Comment', components: { - ArrowRight, + IconArrowRight, + IconClose, + IconDelete, + IconEdit, NcActionButton, NcActions, NcActionSeparator, NcAvatar, NcButton, NcDateTime, + NcLoadingIcon, NcRichContenteditable, }, mixins: [RichEditorMixin, CommentMixin], diff --git a/apps/comments/src/views/ActivityCommentEntry.vue b/apps/comments/src/views/ActivityCommentEntry.vue index 4f7dde2c7d8..bbfe530b2e3 100644 --- a/apps/comments/src/views/ActivityCommentEntry.vue +++ b/apps/comments/src/views/ActivityCommentEntry.vue @@ -17,6 +17,7 @@