Skip to content

Commit 9cefb2b

Browse files
committed
fix: rendering of address book names
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
1 parent acef0a6 commit 9cefb2b

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

src/components/Activity.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ import SystemTagRichArgument from './richArgumentsTypes/SystemTagRichArgument.vu
7171
import CalendarRichArgument from './richArgumentsTypes/CalendarRichArgument.vue'
7272
import CalendarEventRichArgument from './richArgumentsTypes/CalendarEventRichArgument.vue'
7373
import OpenGraphRichArgument from './richArgumentsTypes/OpenGraphRichArgument.vue'
74+
import AddressBookRichArgument from './richArgumentsTypes/AddressBookRichArgument.vue'
7475
import logger from '../logger'
7576
7677
declare global {
@@ -253,6 +254,11 @@ export default defineComponent({
253254
component: CalendarEventRichArgument,
254255
props: richObject,
255256
}
257+
case 'addressbook':
258+
return {
259+
component: AddressBookRichArgument,
260+
props: richObject,
261+
}
256262
default:
257263
return richObject
258264
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!--
2+
- @copyright Copyright (c) 2023 Richard Steinmetz <richard@steinmetz.cloud>
3+
-
4+
- @author Richard Steinmetz <richard@steinmetz.cloud>
5+
-
6+
- @license AGPL-3.0-or-later
7+
-
8+
- This program is free software: you can redistribute it and/or modify
9+
- it under the terms of the GNU General Public License as published by
10+
- the Free Software Foundation, either version 3 of the License, or
11+
- (at your option) any later version.
12+
-
13+
- This program is distributed in the hope that it will be useful,
14+
- but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
- GNU General Public License for more details.
17+
-
18+
- You should have received a copy of the GNU General Public License
19+
- along with this program. If not, see <http://www.gnu.org/licenses/>.
20+
-
21+
-->
22+
23+
<template>
24+
<strong>{{ name }}</strong>
25+
</template>
26+
27+
<script>
28+
export default {
29+
name: 'AddressBookRichArgument',
30+
props: {
31+
name: {
32+
type: String,
33+
required: true,
34+
},
35+
},
36+
}
37+
</script>

0 commit comments

Comments
 (0)