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:
authordartcafe <github@dartcafe.de>2022-04-13 11:08:54 +0300
committerdartcafe <github@dartcafe.de>2022-04-13 11:08:54 +0300
commit36dc4e6c004de3842e83558576500008bc117b43 (patch)
tree8985cdba18aa579da99ea8fe847da8a898a4a6c0 /src
parent9a4fa40b50823d952451d32c9df0737254f8c4aa (diff)
fix small issues in relation to activities
Signed-off-by: dartcafe <github@dartcafe.de>
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