diff options
Diffstat (limited to 'apps/files_sharing/src/components/ExternalShareAction.vue')
-rw-r--r-- | apps/files_sharing/src/components/ExternalShareAction.vue | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/apps/files_sharing/src/components/ExternalShareAction.vue b/apps/files_sharing/src/components/ExternalShareAction.vue new file mode 100644 index 00000000000..c2c86cc8679 --- /dev/null +++ b/apps/files_sharing/src/components/ExternalShareAction.vue @@ -0,0 +1,46 @@ +<!-- + - SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors + - SPDX-License-Identifier: AGPL-3.0-or-later +--> + +<template> + <Component :is="data.is" + v-bind="data" + v-on="action.handlers"> + {{ data.text }} + </Component> +</template> + +<script> +import Share from '../models/Share.ts' + +export default { + name: 'ExternalShareAction', + + props: { + id: { + type: String, + required: true, + }, + action: { + type: Object, + default: () => ({}), + }, + fileInfo: { + type: Object, + default: () => {}, + required: true, + }, + share: { + type: Share, + default: null, + }, + }, + + computed: { + data() { + return this.action.data(this) + }, + }, +} +</script> |