debian-mirror-gitlab/app/assets/javascripts/notes/components/note_signed_out_widget.vue

26 lines
489 B
Vue
Raw Normal View History

2018-03-17 18:26:18 +05:30
<script>
2018-05-09 12:01:36 +05:30
import { mapGetters } from 'vuex';
2018-03-17 18:26:18 +05:30
2018-05-09 12:01:36 +05:30
export default {
computed: {
...mapGetters(['getNotesDataByProp']),
registerLink() {
return this.getNotesDataByProp('registerPath');
2018-03-17 18:26:18 +05:30
},
2018-05-09 12:01:36 +05:30
signInLink() {
return this.getNotesDataByProp('newSessionPath');
},
},
};
2018-03-17 18:26:18 +05:30
</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>