mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Change to methods to computed in Message component after Moriz suggestion
This commit is contained in:
parent
5b0b299429
commit
e597ef4acc
@ -6,7 +6,7 @@
|
||||
<p class="h1 test-message-headline">{{ headline }}</p>
|
||||
<p class="h4 test-message-subtitle">{{ subtitle }}</p>
|
||||
<hr />
|
||||
<b-button v-if="showButton()" class="test-message-button" :to="buttonLinkTo()">
|
||||
<b-button v-if="showButton" class="test-message-button" :to="buttonLinkTo">
|
||||
{{ buttonText }}
|
||||
</b-button>
|
||||
</div>
|
||||
@ -24,7 +24,7 @@ export default {
|
||||
buttonText: { type: String, required: false, default: null },
|
||||
linkTo: { type: String, required: false, default: null },
|
||||
},
|
||||
methods: {
|
||||
computed: {
|
||||
showButton() {
|
||||
return this.buttonText && this.linkTo
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user