-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add recipient info on the right side of the composer
Signed-off-by: greta <[email protected]> Signed-off-by: Richard Steinmetz <[email protected]>
- Loading branch information
Showing
7 changed files
with
338 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
<template> | ||
<div ref="contactDetails" /> | ||
</template> | ||
|
||
<script> | ||
import logger from '../logger.js' | ||
export default { | ||
props: { | ||
email: { | ||
type: String, | ||
required: true, | ||
}, | ||
}, | ||
data() { | ||
return { | ||
vm: null, | ||
} | ||
}, | ||
async mounted() { | ||
const mountContactDetails = window.OCA?.Contacts?.mountContactDetails | ||
if (mountContactDetails) { | ||
try { | ||
this.vm = await mountContactDetails(this.$refs.contactDetails, this.email) | ||
} catch (error) { | ||
logger.error(`Failed to mount contact details: ${error}`) | ||
} | ||
} | ||
}, | ||
async beforeDestroy() { | ||
if (this.vm) { | ||
this.vm.$destroy() | ||
} | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.