diff --git a/src/App.vue b/src/App.vue
index 730e3c0e..07dc18e9 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,3 +1,4 @@
+
diff --git a/src/components/Game/GameSpeedruns.vue b/src/components/Game/GameSpeedruns.vue
index 1e48f1ee..dbbe66c7 100644
--- a/src/components/Game/GameSpeedruns.vue
+++ b/src/components/Game/GameSpeedruns.vue
@@ -1,7 +1,6 @@
diff --git a/src/pages/CreateBoardPage.vue b/src/pages/CreateBoardPage.vue
index edc44a18..0645aaf1 100644
--- a/src/pages/CreateBoardPage.vue
+++ b/src/pages/CreateBoardPage.vue
@@ -1,93 +1,64 @@
-
- {{ $t('boards.create') }}
+
-
-
-
+
+
+ {{ $t('boards.create') }}
-
-
-
-
-
- Show more fields
-
-
-
-
-
-
-
- Choose platforms
-
-
-
-
+
-
+
-
-
+
+
+
-
-
+
-
- Cancel
-
-
-
-
- Create board
-
+
+
+ Create board
+
+
+
@@ -98,39 +69,21 @@ export default {
board: {
name: '',
description: '',
- theme: null,
- backgroundUrl: null,
- backgroundColor: null,
- platforms: [],
lists: [],
},
- stepTitles: {
- 1: 'Name your board',
- 2: 'Game search will be limited to the platforms selected.',
- 3: 'Use a board template or start from scratch',
- },
- showOptionalFields: false,
- platformCategories: {
- 1: 'console',
- 2: 'arcade',
- 3: 'platform',
- 4: 'operating_system',
- 5: 'portable_console',
- 6: 'computer',
- },
saving: false,
selectedTemplate: null,
- boardTemplatesOptions: [
- { value: null, text: 'Blank' },
- { value: 'standard', text: 'Standard' },
- { value: 'detailed', text: 'Detailed' },
- { value: 'completionist', text: 'Completionist' },
- ],
- boardTemplates: {
- standard: ['Owned', 'Wishlist'],
- detailed: ['Physical', 'Digital', 'Wishlist'],
- completionist: ['Owned', 'Playing', 'Completed'],
- },
+ // boardTemplatesOptions: [
+ // { value: null, text: 'Blank' },
+ // { value: 'standard', text: 'Standard' },
+ // { value: 'detailed', text: 'Detailed' },
+ // { value: 'completionist', text: 'Completionist' },
+ // ],
+ // boardTemplates: {
+ // standard: ['Owned', 'Wishlist'],
+ // detailed: ['Physical', 'Digital', 'Wishlist'],
+ // completionist: ['Owned', 'Playing', 'Completed'],
+ // },
};
},
@@ -150,7 +103,6 @@ export default {
const { id } = await this.$store.dispatch('CREATE_BOARD', payload);
- this.$bvToast.toast('Board crated');
this.$router.push({ name: 'board', params: { id } });
} catch (e) {
this.$bvToast.toast('There was an error creating board', { variant: 'error' });
@@ -159,3 +111,15 @@ export default {
},
};
+
+
diff --git a/src/pages/EditListPage.vue b/src/pages/EditListPage.vue
index 8e68e874..4822563d 100644
--- a/src/pages/EditListPage.vue
+++ b/src/pages/EditListPage.vue
@@ -1,4 +1,6 @@
+
+
@@ -11,8 +13,12 @@
-
- Edit list
+
+ Edit list
+
+
+ Add games
+
@@ -244,8 +252,8 @@ export default {
existingListNames() {
const originalListName = this.board?.lists[this.listIndex]?.name;
- return this.board?.lists.map(({ name }) => name.toLowerCase())
- .filter(name => name !== originalListName.toLowerCase());
+ return this.board?.lists.map(({ name }) => name?.toLowerCase())
+ .filter(name => originalListName?.toLowerCase() !== name);
},
isDuplicate() {
@@ -312,16 +320,13 @@ export default {
},
async deleteList() {
- // this.$store.commit('REMOVE_LIST', this.listIndex);
+ const board = { ...this.board };
- await this.$store.dispatch('SAVE_BOARD', true)
- .catch(() => {
- this.$store.commit('SET_SESSION_EXPIRED', true);
- });
+ board.lists.splice(this.listIndex, 1);
- this.$bvToast.toast('List deleted', {
- variant: 'warning',
- });
+ await this.$store.dispatch('SAVE_GAME_BOARD', board);
+
+ this.$router.push({ name: 'board', params: { id: this.board.id } });
},
async moveList(from, to) {
diff --git a/src/pages/NotesPage.vue b/src/pages/NotesPage.vue
index c64d2fb7..79d73d60 100644
--- a/src/pages/NotesPage.vue
+++ b/src/pages/NotesPage.vue
@@ -2,9 +2,7 @@
-
+
-
-
-
- Wallpapers
-
-
-
+
Upload
-
+