corrected todo typo

This commit is contained in:
Roman Cervantes 2019-12-03 11:26:35 -07:00
parent aa3c3fc57d
commit f18be484fb
2 changed files with 12 additions and 12 deletions

View file

@ -155,7 +155,7 @@ export default {
saveNotes(notes, force) {
if (notes) {
// TOOD: move to actions
// TODO: move to actions
db.collection('notes').doc(this.user.uid).set(notes, { merge: !force })
.then(() => {
this.$bus.$emit('TOAST', { message: 'Notes updated' });
@ -168,7 +168,7 @@ export default {
},
syncData() {
// TOOD: move to actions
// TODO: move to actions
db.collection('lists').doc(this.user.uid)
.onSnapshot((doc) => {
if (doc.exists) {
@ -178,7 +178,7 @@ export default {
});
// TOOD: move to actions
// TODO: move to actions
db.collection('settings').doc(this.user.uid)
.onSnapshot((doc) => {
if (doc.exists) {
@ -188,7 +188,7 @@ export default {
}
});
// TOOD: move to actions
// TODO: move to actions
db.collection('tags').doc(this.user.uid)
.onSnapshot((doc) => {
if (doc.exists) {
@ -198,7 +198,7 @@ export default {
}
});
// TOOD: move to actions
// TODO: move to actions
db.collection('notes').doc(this.user.uid)
.onSnapshot((doc) => {
if (doc.exists) {
@ -218,7 +218,7 @@ export default {
},
loadSettings() {
// TOOD: move to actions
// TODO: move to actions
const docRef = db.collection('settings').doc(this.user.uid);
docRef.get().then((doc) => {
@ -234,7 +234,7 @@ export default {
},
loadLists() {
// TOOD: move to actions
// TODO: move to actions
db.collection('lists').doc(this.user.uid).get()
.then((doc) => {
if (doc.exists) {
@ -251,7 +251,7 @@ export default {
},
loadTags() {
// TOOD: move to actions
// TODO: move to actions
db.collection('tags').doc(this.user.uid).get()
.then((doc) => {
if (doc.exists) {
@ -266,7 +266,7 @@ export default {
},
initList() {
// TOOD: move to actions
// TODO: move to actions
db.collection('lists').doc(this.user.uid).set({}, { merge: true })
.then(() => {
this.loadLists();
@ -278,7 +278,7 @@ export default {
},
initSettings() {
// TOOD: move to actions
// TODO: move to actions
db.collection('settings').doc(this.user.uid).set({}, { merge: true })
.then(() => {
this.loadSettings();

View file

@ -129,10 +129,10 @@ export default {
const db = firebase.firestore();
// TODO: Add progress bar, delete tags, files, etc...
// TOOD: move to actions
// TODO: move to actions
db.collection('settings').doc(this.user.uid).delete()
.then(() => {
// TOOD: move to actions
// TODO: move to actions
db.collection('lists').doc(this.user.uid).delete()
.then(() => {
this.$bus.$emit('TOAST', { message: 'Account deleted' });