Skip to content

Commit 323162f

Browse files
authored
Merge pull request #45881 from nextcloud/revert-45870-backport/45867/stable28
Revert "[stable28] fix(comments): Use proper icon components instead …
2 parents 5ba6f3e + 28acd82 commit 323162f

File tree

12 files changed

+25
-38
lines changed

12 files changed

+25
-38
lines changed

apps/comments/src/components/Comment.vue

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,22 @@
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>
@@ -92,8 +87,8 @@
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.
127122
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
128123
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
129124
import 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
136127
import Moment from './Moment.vue'
137128
import 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],

apps/comments/src/views/ActivityCommentEntry.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
</template>
3535

3636
<script lang="ts">
37-
import type { PropType } from 'vue'
3837
import { translate as t } from '@nextcloud/l10n'
3938
4039
import Comment from '../components/Comment.vue'
@@ -54,7 +53,7 @@ export default {
5453
required: true,
5554
},
5655
reloadCallback: {
57-
type: Function as PropType<() => void>,
56+
type: Function,
5857
required: true,
5958
},
6059
},

dist/1241-1241.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/1241-1241.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/5632-5632.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)