move board types to constant, hide tier type until ready

This commit is contained in:
Gamebrary 2022-10-24 10:46:07 -07:00
parent 7eca2d95b4
commit d536e5bf3e
3 changed files with 21 additions and 12 deletions

View file

@ -33,7 +33,7 @@
<b-form-select
id="boardType"
v-model="board.type"
:options="boardTypes"
:options="$options.BOARD_TYPES"
/>
</b-form-group>
@ -68,7 +68,11 @@
</template>
<script>
import { BOARD_TYPES } from '@/constants';
export default {
BOARD_TYPES,
data() {
return {
board: {
@ -77,11 +81,6 @@ export default {
lists: [],
type: 'kanban',
},
boardTypes: [
{ text: 'Kanban', value: 'kanban' },
{ text: 'List', value: 'list' },
{ text: 'Tier', value: 'tier' },
],
saving: false,
selectedTemplate: null,
};

View file

@ -47,15 +47,16 @@
<b-form-group
label="Board type"
label-for="name"
label-for="boardType"
>
<b-dropdown id="dropdown-1" :text="board.type">
<b-dropdown-item @click="setBoardType('kanban')">Kanban</b-dropdown-item>
<!-- <b-dropdown-item @click="setBoardType('tiers')">Tiers</b-dropdown-item> -->
<b-dropdown-item @click="setBoardType('basic')">Basic</b-dropdown-item>
</b-dropdown>
<b-form-select
id="boardType"
v-model="board.type"
:options="$options.BOARD_TYPES"
/>
</b-form-group>
<b-form-group
:label="$t('board.settings.descriptionLabel')"
label-for="description"
@ -156,11 +157,14 @@
<script>
import { mapState, mapGetters } from 'vuex';
import { BOARD_TYPES } from '@/constants';
import WallpapersList from '@/components/WallpapersList';
import VSwatches from 'vue-swatches'
import MiniBoard from '@/components/Board/MiniBoard';
export default {
BOARD_TYPES,
components: {
WallpapersList,
VSwatches,

View file

@ -7,6 +7,12 @@ export const STEAM_CATEGORY_ID = 13;
export const GOG_CATEGORY_ID = 17;
export const TWITTER_CATEGORY_ID = 5;
export const BOARD_TYPES = [
{ text: 'Kanban', value: 'kanban' },
{ text: 'List', value: 'list' },
// { text: 'Tier', value: 'tier' },
];
export const PLATFORM_CATEGORIES = {
1: 'console',
2: 'arcade',