diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2021-09-14 17:41:07 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2021-09-16 15:20:50 +0200 |
commit | 164b0064ed678f8f5c019d464a94afbadde7f462 (patch) | |
tree | 7e40561bdf04dface382f78b177f7315c8f7113e /apps/files_sharing/src/components/ExternalShareAction.vue | |
parent | 959e4cb0bf768f9bd3ecd61046261cf7f7163a24 (diff) | |
download | nextcloud-server-164b0064ed678f8f5c019d464a94afbadde7f462.tar.gz nextcloud-server-164b0064ed678f8f5c019d464a94afbadde7f462.zip |
Add new ExternalShareActions API
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src/components/ExternalShareAction.vue')
-rw-r--r-- | apps/files_sharing/src/components/ExternalShareAction.vue | 63 |
1 files changed, 63 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..39caa1260c8 --- /dev/null +++ b/apps/files_sharing/src/components/ExternalShareAction.vue @@ -0,0 +1,63 @@ +<!-- + - @copyright Copyright (c) 2021 John Molakvoæ <skjnldsv@protonmail.com> + - + - @author John Molakvoæ <skjnldsv@protonmail.com> + - + - @license GNU AGPL version 3 or any later version + - + - 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/>. + - + --> + +<template> + <Component :is="data.is" + v-bind="data" + v-on="action.handlers"> + {{ data.text }} + </Component> +</template> + +<script> +import Share from '../models/Share' + +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> |