Skip to content

Commit

Permalink
fix: rendering of address book names
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
  • Loading branch information
st3iny committed Nov 13, 2023
1 parent acef0a6 commit 9cefb2b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Activity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ import SystemTagRichArgument from './richArgumentsTypes/SystemTagRichArgument.vu
import CalendarRichArgument from './richArgumentsTypes/CalendarRichArgument.vue'
import CalendarEventRichArgument from './richArgumentsTypes/CalendarEventRichArgument.vue'
import OpenGraphRichArgument from './richArgumentsTypes/OpenGraphRichArgument.vue'
import AddressBookRichArgument from './richArgumentsTypes/AddressBookRichArgument.vue'
import logger from '../logger'
declare global {
Expand Down Expand Up @@ -253,6 +254,11 @@ export default defineComponent({
component: CalendarEventRichArgument,
props: richObject,
}
case 'addressbook':
return {
component: AddressBookRichArgument,
props: richObject,
}
default:
return richObject
}
Expand Down
37 changes: 37 additions & 0 deletions src/components/richArgumentsTypes/AddressBookRichArgument.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!--
- @copyright Copyright (c) 2023 Richard Steinmetz <richard@steinmetz.cloud>
-
- @author Richard Steinmetz <richard@steinmetz.cloud>
-
- @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 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 General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-->

<template>
<strong>{{ name }}</strong>
</template>

<script>
export default {
name: 'AddressBookRichArgument',
props: {
name: {
type: String,
required: true,
},
},
}
</script>

0 comments on commit 9cefb2b

Please sign in to comment.