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() { clickAddAcl() {
this.addAclForAPI = { this.addAclForAPI = {
type: 0, type: this.addAcl.value.shareType,
participant: this.addAcl.value.shareWith, participant: this.addAcl.value.shareWith,
permissionEdit: false, permissionEdit: false,
permissionShare: false, permissionShare: false,

View File

@@ -81,6 +81,14 @@ export default {
}, },
methods: { methods: {
updateDueTime() { updateDueTime() {
if (this.card === undefined) {
return
}
if (this.card.duedate === null) {
return
}
this.dueTime = OC.Util.relativeModifiedDate(this.card.duedate) this.dueTime = OC.Util.relativeModifiedDate(this.card.duedate)
let timeInHours = Math.round((Date.parse(this.card.duedate) - Date.now()) / 1000 / 60 / 60 / 24) 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 // acl mutators
addAclToCurrentBoard(state, createdAcl) { addAclToCurrentBoard(state, createdAcl) {
Vue.set(state.currentBoard.acl, createdAcl.id, createdAcl) state.currentBoard.acl.push(createdAcl)
}, },
updateAclFromCurrentBoard(state, acl) { updateAclFromCurrentBoard(state, acl) {
for (var acl_ in state.currentBoard.acl) { for (var acl_ in state.currentBoard.acl) {