summaryrefslogtreecommitdiffstats
path: root/src/store/addressbooks.js
diff options
context:
space:
mode:
authorJessica <jessica@Absolventas-MacBook-Pro.local>2018-08-27 17:06:36 +0200
committerJessica <jessica@Absolventas-MacBook-Pro.local>2018-08-27 17:06:36 +0200
commit7fc9ac52cf9807fc1a54316c313ecd6580c73056 (patch)
treeceae64219f419c3ce799a3499c9ba7774a86c39f /src/store/addressbooks.js
parent304268eea0f73bd66b697c92ea969bcf838d3041 (diff)
started to work on function for toggling whether an addressbook is enabled or not
Diffstat (limited to 'src/store/addressbooks.js')
-rw-r--r--src/store/addressbooks.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/store/addressbooks.js b/src/store/addressbooks.js
index 76399552..df4fc121 100644
--- a/src/store/addressbooks.js
+++ b/src/store/addressbooks.js
@@ -178,7 +178,9 @@ const mutations = {
}
}
})
+ console.log(addressbook) // eslint-disable-line
sharee = addressbook.shares.find(search => search === sharee)
+ console.log(sharee) // eslint-disable-line
sharee.writeable = !sharee.writeable
}
@@ -305,14 +307,9 @@ const actions = {
* @param {Boolean} data.id id
* @param {Boolean} data.group group
*/
-<<<<<<< HEAD
- shareAddressbook(context, { addressbook, sharee, group }) {
- context.commit('shareAddressbook', { addressbook, sharee, group })
-=======
shareAddressbook(context, { addressbook, sharee, id, group }) {
// Share addressbook with entered group or user
context.commit('shareAddressbook', { addressbook, sharee, id, group })
->>>>>>> origin/vue-share-addressbook
}
}