debian-mirror-gitlab/app/assets/javascripts/reports/components/modal_open_name.vue

34 lines
609 B
Vue
Raw Normal View History

2018-11-18 11:00:15 +05:30
<script>
import { mapActions } from 'vuex';
export default {
props: {
issue: {
type: Object,
required: true,
},
// failed || success
status: {
type: String,
required: true,
},
},
methods: {
...mapActions(['openModal']),
handleIssueClick() {
const { issue, status, openModal } = this;
openModal({ issue, status });
},
},
};
</script>
<template>
<button
type="button"
class="btn-link btn-blank text-left break-link vulnerability-name-button"
2019-03-02 22:35:43 +05:30
@click="handleIssueClick()"
2018-11-18 11:00:15 +05:30
>
{{ issue.title }}
</button>
</template>