Fixed: [vue] add condition to use dropdown or single button

This commit is contained in:
2023-05-23 18:10:29 +02:00
parent ef6a5e0b6b
commit 53aa887da5
3 changed files with 31 additions and 12 deletions

View File

@@ -298,12 +298,7 @@
</li>
<li>
<!--
{% if accompanyingCourse.hasUser and accompanyingCourse.user is not same as(app.user) %}
{{ work.accompanyingPeriod.user }}
-->
<button
v-if="false"
<button v-if="AmIRefferer"
class="btn btn-notify"
@click="goToGenerateNotification(false)"
></button>
@@ -463,6 +458,7 @@ export default {
'isPosting',
'errors',
'templatesAvailablesForAction',
'me',
]),
...mapGetters([
'hasResultsForAction',
@@ -520,6 +516,10 @@ export default {
this.$store.commit('setPersonsPickedIds', v);
}
},
AmIRefferer() {
return (!(this.work.accompanyingPeriod.user && this.me
&& (this.work.accompanyingPeriod.user.id !== this.me.id)));
}
},
methods: {
toggleSelect() {