diff --git a/apps/files/src/components/FileSharingSidebar.vue b/apps/files/src/components/FileSharingSidebar.vue
index b4ad30f6c72..5dfada5b74d 100644
--- a/apps/files/src/components/FileSharingSidebar.vue
+++ b/apps/files/src/components/FileSharingSidebar.vue
@@ -30,6 +30,39 @@
{{ buildRecipientDisplay(item) }}
+
+
+
+ {{ selectedItem.label }}
+
+
+
+
+
+
Select role{{ selectedNewRole.name }}
+
{{ selectedNewRole.description }}
+
+
+ -
+ {{ role.name }}
+
{{ role.description }}
+
+
+
+
+
+
+ 04 - 07 - 2019
+
+
+ Cancel
+
+
+ Add collaborators
+
+
+
+
@@ -110,13 +143,13 @@ export default {
watch: {
selectedItem: function (newSelectedSharee) {
// TODO: handle groups as well
- this.addShare({
- client: this.$client,
- path: this.selectedFiles[0].path,
- $gettext: this.$gettext,
- shareWith: newSelectedSharee.value.shareWith,
- shareType: newSelectedSharee.value.shareType
- })
+ // this.addShare({
+ // client: this.$client,
+ // path: this.selectedFiles[0].path,
+ // $gettext: this.$gettext,
+ // shareWith: newSelectedSharee.value.shareWith,
+ // shareType: newSelectedSharee.value.shareType
+ // })
}
},
data () {
@@ -144,7 +177,8 @@ export default {
// name: this.$gettext('Custom role'),
// description: this.$gettext('Set detailed permissions')
// }
- }
+ },
+ selectedNewRole: ''
}
},
computed: {
@@ -230,6 +264,12 @@ export default {
this.editing = { name: null }
this.saving = false
})
+ },
+ $_ocCollaborators_newCollaboratorsCancel () {
+ this.selectedItem = ''
+ },
+ $_ocCollaborators_newCollaboratorsSelectRole (role) {
+ this.selectedNewRole = role
}
}
}