sharing fix and updatedutime

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-08-22 09:02:02 +02:00
committed by Julius Härtl
parent 8874b3df69
commit bdb9442671
3 changed files with 10 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ export default {
},
clickAddAcl() {
this.addAclForAPI = {
type: 0,
type: this.addAcl.value.shareType,
participant: this.addAcl.value.shareWith,
permissionEdit: false,
permissionShare: false,

View File

@@ -81,6 +81,14 @@ export default {
},
methods: {
updateDueTime() {
if (this.card === undefined) {
return
}
if (this.card.duedate === null) {
return
}
this.dueTime = OC.Util.relativeModifiedDate(this.card.duedate)
let timeInHours = Math.round((Date.parse(this.card.duedate) - Date.now()) / 1000 / 60 / 60 / 24)

View File

@@ -180,7 +180,7 @@ export default new Vuex.Store({
// acl mutators
addAclToCurrentBoard(state, createdAcl) {
Vue.set(state.currentBoard.acl, createdAcl.id, createdAcl)
state.currentBoard.acl.push(createdAcl)
},
updateAclFromCurrentBoard(state, acl) {
for (var acl_ in state.currentBoard.acl) {