sharing fix and updatedutime
Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user