mirror of
https://github.com/romancm/gamebrary
synced 2024-11-28 14:10:26 +00:00
remove add list action
This commit is contained in:
parent
3052eca97f
commit
f3b44eea98
1 changed files with 0 additions and 15 deletions
|
@ -94,21 +94,6 @@ export default {
|
|||
});
|
||||
},
|
||||
|
||||
ADD_LIST({ state, commit }, list) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const db = firebase.firestore();
|
||||
|
||||
db.collection('boards')
|
||||
.doc(state.board.id)
|
||||
.update({ lists: firebase.firestore.FieldValue.arrayUnion(list) })
|
||||
.then(() => {
|
||||
commit('ADD_LIST', list);
|
||||
resolve();
|
||||
})
|
||||
.catch(reject);
|
||||
});
|
||||
},
|
||||
|
||||
// set merge to true when deleting lists
|
||||
SAVE_BOARD({ state }, merge = false) {
|
||||
const db = firebase.firestore();
|
||||
|
|
Loading…
Reference in a new issue