diff --git a/src/components/GameDetail/GameDetails.vue b/src/components/GameDetail/GameDetails.vue index dd16e8fa..0f2975fe 100644 --- a/src/components/GameDetail/GameDetails.vue +++ b/src/components/GameDetail/GameDetails.vue @@ -108,7 +108,7 @@ export default { align-items: center; strong { - color: var(--link-color); + color: var(--accent-color); } section { diff --git a/src/components/GameDetail/GameHeader.vue b/src/components/GameDetail/GameHeader.vue deleted file mode 100644 index a7b29787..00000000 --- a/src/components/GameDetail/GameHeader.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - diff --git a/src/components/Lists/List.vue b/src/components/Lists/List.vue index 4208c12f..901e2c06 100644 --- a/src/components/Lists/List.vue +++ b/src/components/Lists/List.vue @@ -48,7 +48,7 @@ /> - + @@ -60,7 +60,7 @@ import GameCardDefault from '@/components/GameCards/GameCardDefault'; import GameCardGrid from '@/components/GameCards/GameCardGrid'; import GameCardWide from '@/components/GameCards/GameCardWide'; import GameCardText from '@/components/GameCards/GameCardText'; -import GameSearch from '@/components/GameSearch'; +import AddGame from '@/components/AddGame'; import { mapState, mapGetters } from 'vuex'; import firebase from 'firebase/app'; import 'firebase/firestore'; @@ -75,7 +75,7 @@ export default { GameCardGrid, GameCardWide, GameCardText, - GameSearch, + AddGame, ListSettings, draggable, }, diff --git a/src/components/Lists/ListAdd.vue b/src/components/Lists/ListAdd.vue index 38a210fc..0f6e82a4 100644 --- a/src/components/Lists/ListAdd.vue +++ b/src/components/Lists/ListAdd.vue @@ -1,5 +1,5 @@ @@ -199,6 +196,7 @@ export default { deleteList() { this.$store.commit('REMOVE_LIST', this.listIndex); + // TODO: move to action db.collection('lists').doc(this.user.uid).set(this.gameLists, { merge: true }) .then(() => { this.$bus.$emit('TOAST', { message: 'List deleted' }); diff --git a/src/components/Settings/GameBoardSettings.vue b/src/components/Settings/GameBoardSettings.vue index 0862bee1..df103027 100644 --- a/src/components/Settings/GameBoardSettings.vue +++ b/src/components/Settings/GameBoardSettings.vue @@ -1,19 +1,14 @@ @@ -116,10 +89,6 @@ export default { return `Check out my ${this.platform.name} collection at Gamebrary`; }, - showBoardSpecificSettings() { - return this.$route.name === 'game-board' && this.platform; - }, - tweetUrl() { return `https://twitter.com/intent/tweet?text=${this.shareText}&url=${encodeURIComponent(this.shareUrl)}`; }, @@ -138,9 +107,8 @@ export default { }, mounted() { - if (!this.value.theme) { - this.value.theme = {}; - this.value.theme[this.platform.code] = 'theme-default'; + if (!this.value[this.platform.code]) { + this.value[this.platform.code] = {}; } }, @@ -150,7 +118,7 @@ export default { const db = firebase.firestore(); - // TOOD: move to actions + // TODO: move to actions db.collection('lists').doc(this.user.uid).set(this.gameLists, { merge: false }) .then(() => { this.$router.push({ name: 'platforms' }); @@ -163,28 +131,3 @@ export default { }, }; - - diff --git a/src/components/Settings/PlatformsSettings.vue b/src/components/Settings/PlatformsSettings.vue index 4aa0a6d6..ce22258f 100644 --- a/src/components/Settings/PlatformsSettings.vue +++ b/src/components/Settings/PlatformsSettings.vue @@ -1,5 +1,5 @@