mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
Fixed: [vue] add condition to use dropdown or single button
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user