mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add computed parameters for register and login (add code)
This commit is contained in:
parent
0132d95cf8
commit
7996bc8e5c
@ -7,7 +7,6 @@
|
||||
</h1>
|
||||
<b>{{ memo }}</b>
|
||||
</b-jumbotron>
|
||||
|
||||
<b-jumbotron>
|
||||
<div class="mb-6">
|
||||
<h2>{{ $t('gdd_per_link.redeem') }}</h2>
|
||||
@ -16,13 +15,13 @@
|
||||
<b-row>
|
||||
<b-col col sm="12" md="6">
|
||||
<p>{{ $t('gdd_per_link.no-account') }}</p>
|
||||
<b-button variant="primary" to="/register">
|
||||
<b-button variant="primary" :to="register">
|
||||
{{ $t('gdd_per_link.to-register') }}
|
||||
</b-button>
|
||||
</b-col>
|
||||
<b-col sm="12" md="6" class="mt-xs-6 mt-sm-6 mt-md-0">
|
||||
<p>{{ $t('gdd_per_link.has-account') }}</p>
|
||||
<b-button variant="info" to="/login">{{ $t('gdd_per_link.to-login') }}</b-button>
|
||||
<b-button variant="info" :to="login">{{ $t('gdd_per_link.to-login') }}</b-button>
|
||||
</b-col>
|
||||
</b-row>
|
||||
</b-jumbotron>
|
||||
@ -36,5 +35,13 @@ export default {
|
||||
amount: { type: String, required: true },
|
||||
memo: { type: String, required: true, default: '' },
|
||||
},
|
||||
computed: {
|
||||
login() {
|
||||
return '/login/' + this.$route.params.code
|
||||
},
|
||||
register() {
|
||||
return '/register/' + this.$route.params.code
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user