gitlab-org--gitlab-foss/app/assets/javascripts/notes/components/note_signed_out_widget.vue

22 lines
473 B
Vue

<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>