Skip to content

Commit

Permalink
Merge pull request #1058 from nextcloud/add-sharetype-guest-invite-se…
Browse files Browse the repository at this point in the history
…lectoption-data
  • Loading branch information
skjnldsv authored Sep 6, 2023
2 parents fc4ca47 + 09bc8db commit 0246ab8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@nextcloud/dialogs": "^4.0.1",
"@nextcloud/event-bus": "^3.1.0",
"@nextcloud/router": "^2.0.1",
"@nextcloud/sharing": "^0.1.0",
"@nextcloud/vue": "^7.11.4",
"email-validator": "^2.0.4",
"vue": "^2.7.14",
Expand Down
2 changes: 2 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Vue from 'vue'
import GuestForm from './views/GuestForm.vue'
import Nextcloud from './mixins/Nextcloud.js'
import { showError } from '@nextcloud/dialogs'
import { Type } from '@nextcloud/sharing'

Vue.mixin(Nextcloud)

Expand All @@ -25,6 +26,7 @@ guestForm.$mount('#guest-root')
const result = {
icon: 'icon-guests',
displayName: t('guests', 'Invite guest'),
shareType: Type.SHARE_TYPE_GUEST,
handler: async self => {
const user = self.suggestions.find(s => s.isNoUser === false && s.shareType === 0)
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 0246ab8

Please sign in to comment.