use show instead of shown

This commit is contained in:
Gamebrary 2020-08-24 10:22:01 -07:00
parent 011863d4c9
commit a5d0b15ed7
20 changed files with 24 additions and 41 deletions

View file

@ -9,7 +9,7 @@
scrollable
footer-class="p-2 d-flex align-items-center justify-content-between"
size="lg"
@shown="load"
@show="load"
>
<vue-markdown
v-if="readme"

View file

@ -12,7 +12,7 @@
<b-modal
:id="modalId"
:title="title"
@shown="reset"
@show="reset"
>
<form ref="addListForm" @submit.stop.prevent="submit">
<b-form-input

View file

@ -7,7 +7,7 @@
id="board-settings"
title="Board settings"
body-class="p-0"
@shown="getSettings"
@show="getSettings"
>
<b-list-group flush>

View file

@ -6,7 +6,7 @@
<b-modal
:id="modalId"
title="Change list view"
@shown="getView"
@show="getView"
>
<form ref="renameListForm" @submit.prevent="save">
<b-form-group label="Views">

View file

@ -7,8 +7,7 @@
footer-bg-variant="light"
footer-class="p-2 justify-content-center"
:title="title"
@show="loadCachedGame"
@shown="loadGame"
@show="load"
@hidden="reset"
>
<b-container v-if="game">
@ -75,7 +74,7 @@
<b-icon-check />
</b-button>
<b-modal id="progress" title="Set game progress" @shown="getProgress">
<b-modal id="progress" title="Set game progress" @show="getProgress">
<b-input-group :prepend="`${localProgress}%`" class="mb-4" size="lg">
<b-form-input
size="lg"
@ -101,7 +100,7 @@
<b-icon-file-earmark-text />
</b-button>
<b-modal id="notes" title="Game notes" @shown="getNotes">
<b-modal id="notes" title="Game notes" @show="getNotes">
<b-form-textarea
v-model.trim="localNote.text"
placeholder="Type note here"
@ -550,12 +549,14 @@ export default {
});
},
loadCachedGame() {
load() {
const { gameId, listId } = this.gameModalData;
this.gameId = gameId;
this.listId = listId;
this.game = this.games[gameId];
this.loadGame();
},
async loadGame() {

View file

@ -5,7 +5,7 @@
<b-modal
:id="modalId"
title="List tweaks"
@shown="getSettings"
@show="getSettings"
>
<form ref="renameListForm" @submit.stop.prevent="save">
<b-form-checkbox v-model="showReleaseDates" name="check-button" switch>

View file

@ -10,7 +10,7 @@
scrollable
hide-footer
size="lg"
@shown="loadReleases"
@show="loadReleases"
>
<div v-if="releases">
<b-card

View file

@ -5,7 +5,7 @@
<b-modal
:id="modalId"
title="Rename list"
@shown="getListName"
@show="getListName"
>
<form ref="renameListForm" @submit.stop.prevent="submit">
<b-form-input
@ -132,6 +132,3 @@ export default {
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>

View file

@ -6,7 +6,7 @@
<b-modal
:id="modalId"
title="Sort list"
@shown="getSortValue"
@show="getSortValue"
>
<form ref="renameListForm" @submit.stop.prevent="save">
<b-form-group :label="$t('list.sortList')" block>
@ -111,6 +111,3 @@ export default {
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>

View file

@ -7,7 +7,7 @@
id="tags-settings"
title="Manage Tags"
hide-footer
@shown="shown"
@show="setLocalTags"
>
<form
ref="newTagForm"
@ -234,7 +234,7 @@ export default {
},
methods: {
shown() {
setLocalTags() {
this.localTags = JSON.parse(JSON.stringify(this.tags));
},

View file

@ -158,6 +158,3 @@ export default {
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>

View file

@ -5,7 +5,7 @@
<b-modal
:id="modalId"
title="List tweaks"
@shown="getSettings"
@show="getSettings"
>
<form ref="renameListForm" @submit.stop.prevent="save">
<b-form-checkbox v-model="showReleaseDates" name="check-button" switch>

View file

@ -5,7 +5,7 @@
<b-modal
:id="modalId"
title="Rename list"
@shown="getListName"
@show="getListName"
>
<form ref="renameListForm" @submit.stop.prevent="submit">
<b-form-input
@ -128,6 +128,3 @@ export default {
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>

View file

@ -6,7 +6,7 @@
<b-modal
:id="modalId"
title="Sort list"
@shown="getSortValue"
@show="getSortValue"
>
<form ref="renameListForm" @submit.stop.prevent="save">
<b-form-group :label="$t('list.sortList')" block>

View file

@ -59,6 +59,3 @@ export default {
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>

View file

@ -9,7 +9,7 @@
scrollable
footer-class="p-2 d-flex align-items-center justify-content-between"
size="lg"
@shown="load"
@show="load"
>
<vue-markdown
v-if="readme"

View file

@ -7,7 +7,7 @@
id="board-settings"
title="Board settings"
body-class="p-0"
@shown="getSettings"
@show="getSettings"
>
<b-list-group flush>

View file

@ -10,7 +10,7 @@
scrollable
hide-footer
size="lg"
@shown="loadReleases"
@show="loadReleases"
>
<div v-if="releases">
<b-card

View file

@ -7,7 +7,7 @@
id="tags-settings"
title="Manage Tags"
hide-footer
@shown="shown"
@show="setLocalTags"
>
<form
ref="newTagForm"
@ -234,7 +234,7 @@ export default {
},
methods: {
shown() {
setLocalTags() {
this.localTags = JSON.parse(JSON.stringify(this.tags));
},

View file

@ -17,6 +17,3 @@ export default {
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>