summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes/components/issue_note_signed_out_widget.vue
blob: 77af3594c1c7b4263dc576b09ca714c9b10f23e1 (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
<script>
  import { mapGetters } from 'vuex';

  export default {
    name: 'singInLinksNotes',
    computed: {
      ...mapGetters([
        'getNotesDataByProp',
      ]),
      registerLink() {
        return this.getNotesDataByProp('registerPath');
      },
      signInLink() {
        return this.getNotesDataByProp('newSessionPath');
      },
    },
  };
</script>

<template>
  <div class="disabled-comment text-center">
    Please
    <a :href="registerLink">register</a>
    or
    <a :href="signInLink">sign in</a>
    to reply
  </div>
</template>