mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-12-22 14:25:38 +00:00
feat(ui): add a "back" button ...
... on the complete view when entered in maintenance mode
This commit is contained in:
parent
278af40b37
commit
42e092f54d
|
@ -30,6 +30,13 @@
|
|||
<h4 class="subtitle">{{ $t('complete.uninstalled', {'name': $root.$data.attrs.name}) }}</h4>
|
||||
</div>
|
||||
|
||||
<!-- show the back button when the user was repairing/installing/updating -->
|
||||
<div class="is-left-floating is-bottom-floating" v-if="$root.$data.metadata.preexisting_install && !this.$route.params.uninstall">
|
||||
<p class="control">
|
||||
<b-button class="is-dark is-medium" v-on:click="go_back">{{ $t('back') }}</b-button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="field is-grouped is-right-floating is-bottom-floating">
|
||||
<p class="control">
|
||||
<b-button class="is-primary is-medium" v-on:click="exit">{{ $t('exit') }}</b-button>
|
||||
|
@ -50,6 +57,9 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
go_back: function () {
|
||||
this.$router.replace('/modify')
|
||||
},
|
||||
exit: function () {
|
||||
this.$root.exit()
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
|
||||
<div class="field is-grouped is-left-floating is-bottom-floating">
|
||||
<p class="control">
|
||||
<b-button class="is-primary is-medium" v-if="$root.$data.metadata.preexisting_install"
|
||||
<b-button class="is-dark is-medium" v-if="$root.$data.metadata.preexisting_install"
|
||||
v-on:click="go_back">{{ $t('back') }}</b-button>
|
||||
</p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue