mirror of
https://github.com/romancm/gamebrary
synced 2024-11-28 14:10:26 +00:00
set latest release as selected release by default
This commit is contained in:
parent
66d173aec5
commit
233c28e1b3
1 changed files with 11 additions and 15 deletions
|
@ -80,10 +80,7 @@ export default {
|
|||
|
||||
this.selectedRelease = latestRelease;
|
||||
|
||||
if (this.notification) {
|
||||
const [latestRelease] = this.releases;
|
||||
|
||||
if (latestRelease && latestRelease.tag_name) {
|
||||
if (this.notification && latestRelease && latestRelease.tag_name) {
|
||||
this.$store.commit('UPDATE_SETTING', { key: 'release', value: latestRelease.tag_name });
|
||||
|
||||
this.$store.dispatch('SAVE_SETTINGS', this.settings)
|
||||
|
@ -96,7 +93,6 @@ export default {
|
|||
{ title: 'Error', variant: 'danger' });
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue