Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRené Gieling <github@dartcafe.de>2022-04-13 11:20:19 +0300
committerGitHub <noreply@github.com>2022-04-13 11:20:19 +0300
commitc792f18b212f175c5d320eb7df56f04106dc1f82 (patch)
tree3876b7fdb224b5428566e68ee3218db416050c7d /src
parent757570706dc2b410814337ef790faccf6b0c3c86 (diff)
parent36dc4e6c004de3842e83558576500008bc117b43 (diff)
Merge pull request #2374 from nextcloud/fix/activity
fix small issues in relation to activities
Diffstat (limited to 'src')
-rw-r--r--src/js/components/Activity/ActivityItem.vue3
-rw-r--r--src/js/helpers/GuestBubble.js43
2 files changed, 45 insertions, 1 deletions
diff --git a/src/js/components/Activity/ActivityItem.vue b/src/js/components/Activity/ActivityItem.vue
index 31337d6e..cdc90519 100644
--- a/src/js/components/Activity/ActivityItem.vue
+++ b/src/js/components/Activity/ActivityItem.vue
@@ -34,6 +34,7 @@ import moment from '@nextcloud/moment'
import RichText from '@juliushaertl/vue-richtext'
import { UserBubble } from '@nextcloud/vue'
import SimpleLink from '../../helpers/SimpleLink'
+import GuestBubble from '../../helpers/GuestBubble'
export default {
name: 'ActivityItem',
@@ -85,7 +86,7 @@ export default {
break
case 'guest':
parameters[key] = {
- component: UserBubble,
+ component: GuestBubble,
props: {
user: parameters[key].id,
displayName: parameters[key].name,
diff --git a/src/js/helpers/GuestBubble.js b/src/js/helpers/GuestBubble.js
new file mode 100644
index 00000000..b0e5b4e1
--- /dev/null
+++ b/src/js/helpers/GuestBubble.js
@@ -0,0 +1,43 @@
+/**
+ * @copyright Copyright (c) 2022 Rene Gieling <github@dartcafe.de>
+ *
+ * @author Rene Gieling <github@dartcafe.de>
+ *
+ * @license AGPL-3.0-or-later
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+const GuestBubble = {
+ name: 'GuestBubble',
+ functional: true,
+
+ props: {
+ user: {
+ type: String,
+ default: '',
+ },
+ displayName: {
+ type: String,
+ default: '',
+ },
+ },
+
+ render(createElement, context) {
+ return createElement('span', context.props.displayName)
+ },
+}
+
+export default GuestBubble