Welcome to mirror list, hosted at ThFree Co, Russian Federation.

note_signed_out_widget.vue « components « notes « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e3eb92956b1be1a81f3de99fa56407fe4a8661a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script>
import { mapGetters } from 'vuex';

export default {
  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>