blob: 1bfb8bd0f6f7745ecbb405d73ab570fc3cb75325 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<template>
<div class="context_info">
<a
href="#"
@click.prevent="onClick"
class="followunfollow"
:class="{ unfollowed: !followed }"
:title="$gettext('Benachrichtigungen für diese Konversation abstellen.')"
>
<StudipIcon v-if="!followed" shape="decline" :size="20" class="text-bottom"></StudipIcon>
<StudipIcon v-else shape="notification2" :size="20" class="text-bottom"></StudipIcon>
{{ $gettext('Benachrichtigungen aktiviert') }}
</a>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
props: {
followed: {
type: Boolean,
required: true,
},
},
methods: {
onClick() {
this.$emit('subscribe-thread', !this.followed);
},
},
});
</script>
|