-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17eafdd
commit eb5dd28
Showing
13 changed files
with
363 additions
and
109 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
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
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,58 @@ | ||
e``<template> | ||
<div> | ||
<NcButton id="addlink_button" type="secondary" @click.prevent.stop="addMultipleEmailShares"> | ||
{{ t('nmcsharing', 'Add All Emails') }} | ||
</NcButton> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' | ||
import SharesMixin from '../mixins/SharesMixin.js' | ||
export default { | ||
name: 'AddAllEmailsButton', | ||
components: { | ||
NcButton, | ||
}, | ||
mixins: [SharesMixin], | ||
props: { | ||
isLoading: { | ||
type: Boolean, | ||
default: false, | ||
required: true, | ||
}, | ||
fileInfo: { | ||
type: Object, | ||
default: () => { }, | ||
required: true, | ||
}, | ||
filteredEmailArr: { | ||
type: Array, | ||
default: () => [], | ||
required: true, | ||
}, | ||
// On button click, we will submit the multiple email shares defined by user | ||
// passing callback function as a prop for async $emit | ||
onSubmit: { | ||
type: Function, | ||
required: true, | ||
}, | ||
}, | ||
methods: { | ||
async addMultipleEmailShares() { | ||
for (const emailObj of this.filteredEmailArr) { | ||
await this.onSubmit(emailObj) | ||
this.$emit('add-share', emailObj) | ||
} | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
button#addlink_button { | ||
font-size: 1rem; | ||
margin-bottom: 24px; | ||
} | ||
</style> |
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.