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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-08-07 18:06:38 +0300
committerFilipa Lacerda <filipa@gitlab.com>2018-08-07 18:06:38 +0300
commitbcdc6f31195f176c6256c2960e6b87e56b62b522 (patch)
treed48daf07ceb830ab4deca120ee51893f88cede05 /app/assets/javascripts/reports/components/modal_open_name.vue
parentbf699ff49860aa186dc485a91f9b04081b346549 (diff)
Moves report components to reports folder
Diffstat (limited to 'app/assets/javascripts/reports/components/modal_open_name.vue')
-rw-r--r--app/assets/javascripts/reports/components/modal_open_name.vue33
1 files changed, 33 insertions, 0 deletions
diff --git a/app/assets/javascripts/reports/components/modal_open_name.vue b/app/assets/javascripts/reports/components/modal_open_name.vue
new file mode 100644
index 00000000000..4f81cee2a38
--- /dev/null
+++ b/app/assets/javascripts/reports/components/modal_open_name.vue
@@ -0,0 +1,33 @@
+<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"
+ @click="handleIssueClick()"
+ >
+ {{ issue.title }}
+ </button>
+</template>