mirror of
https://github.com/romancm/gamebrary
synced 2024-11-28 14:10:26 +00:00
use show instead of shown
This commit is contained in:
parent
011863d4c9
commit
a5d0b15ed7
20 changed files with 24 additions and 41 deletions
|
@ -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"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<b-modal
|
||||
:id="modalId"
|
||||
:title="title"
|
||||
@shown="reset"
|
||||
@show="reset"
|
||||
>
|
||||
<form ref="addListForm" @submit.stop.prevent="submit">
|
||||
<b-form-input
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
id="board-settings"
|
||||
title="Board settings"
|
||||
body-class="p-0"
|
||||
@shown="getSettings"
|
||||
@show="getSettings"
|
||||
>
|
||||
<b-list-group flush>
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
scrollable
|
||||
hide-footer
|
||||
size="lg"
|
||||
@shown="loadReleases"
|
||||
@show="loadReleases"
|
||||
>
|
||||
<div v-if="releases">
|
||||
<b-card
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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));
|
||||
},
|
||||
|
||||
|
|
|
@ -158,6 +158,3 @@ export default {
|
|||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" rel="stylesheet/scss" scoped>
|
||||
</style>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -59,6 +59,3 @@ export default {
|
|||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" rel="stylesheet/scss" scoped>
|
||||
</style>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
id="board-settings"
|
||||
title="Board settings"
|
||||
body-class="p-0"
|
||||
@shown="getSettings"
|
||||
@show="getSettings"
|
||||
>
|
||||
<b-list-group flush>
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
scrollable
|
||||
hide-footer
|
||||
size="lg"
|
||||
@shown="loadReleases"
|
||||
@show="loadReleases"
|
||||
>
|
||||
<div v-if="releases">
|
||||
<b-card
|
||||
|
|
|
@ -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));
|
||||
},
|
||||
|
||||
|
|
|
@ -17,6 +17,3 @@ export default {
|
|||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" rel="stylesheet/scss" scoped>
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue