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