Commit a3dbbb87 authored by Sam Beckham's avatar Sam Beckham Committed by Filipa Lacerda

Resolve "Open "View full report" in new window"

parent b19ee556
<script> <script>
import { mapState, mapGetters, mapActions } from 'vuex'; import { mapState, mapGetters, mapActions } from 'vuex';
import ReportSection from '~/vue_shared/components/reports/report_section.vue'; import ReportSection from '~/vue_shared/components/reports/report_section.vue';
import Icon from '~/vue_shared/components/icon.vue';
import reportsMixin from 'ee/vue_shared/security_reports/mixins/reports_mixin'; import reportsMixin from 'ee/vue_shared/security_reports/mixins/reports_mixin';
import SetLicenseApprovalModal from 'ee/vue_shared/license_management/components/set_approval_status_modal.vue'; import SetLicenseApprovalModal from 'ee/vue_shared/license_management/components/set_approval_status_modal.vue';
import { componentNames } from 'ee/vue_shared/components/reports/issue_body'; import { componentNames } from 'ee/vue_shared/components/reports/issue_body';
...@@ -16,6 +17,7 @@ export default { ...@@ -16,6 +17,7 @@ export default {
components: { components: {
ReportSection, ReportSection,
SetLicenseApprovalModal, SetLicenseApprovalModal,
Icon,
}, },
mixins: [reportsMixin], mixins: [reportsMixin],
props: { props: {
...@@ -110,9 +112,14 @@ export default { ...@@ -110,9 +112,14 @@ export default {
> >
<a <a
:href="licensesTab" :href="licensesTab"
class="btn btn-default float-right btn-sm" target="_blank"
class="btn btn-default btn-sm float-right"
> >
{{ s__("ciReport|View full report") }} <span>{{ s__("ciReport|View full report") }}</span>
<icon
:size="16"
name="external-link"
/>
</a> </a>
</div> </div>
</report-section> </report-section>
......
...@@ -3,6 +3,7 @@ import { mapActions, mapState, mapGetters } from 'vuex'; ...@@ -3,6 +3,7 @@ import { mapActions, mapState, mapGetters } from 'vuex';
import ReportSection from '~/vue_shared/components/reports/report_section.vue'; import ReportSection from '~/vue_shared/components/reports/report_section.vue';
import SummaryRow from '~/vue_shared/components/reports/summary_row.vue'; import SummaryRow from '~/vue_shared/components/reports/summary_row.vue';
import IssuesList from '~/vue_shared/components/reports/issues_list.vue'; import IssuesList from '~/vue_shared/components/reports/issues_list.vue';
import Icon from '~/vue_shared/components/icon.vue';
import { componentNames } from 'ee/vue_shared/components/reports/issue_body'; import { componentNames } from 'ee/vue_shared/components/reports/issue_body';
import IssueModal from './components/modal.vue'; import IssueModal from './components/modal.vue';
import securityReportsMixin from './mixins/security_report_mixin'; import securityReportsMixin from './mixins/security_report_mixin';
...@@ -15,6 +16,7 @@ export default { ...@@ -15,6 +16,7 @@ export default {
SummaryRow, SummaryRow,
IssuesList, IssuesList,
IssueModal, IssueModal,
Icon,
}, },
mixins: [securityReportsMixin], mixins: [securityReportsMixin],
props: { props: {
...@@ -224,9 +226,14 @@ export default { ...@@ -224,9 +226,14 @@ export default {
> >
<a <a
:href="securityTab" :href="securityTab"
class="btn float-right btn-sm" target="_blank"
class="btn btn-default btn-sm float-right"
> >
{{ s__("ciReport|View full report") }} <span>{{ s__("ciReport|View full report") }}</span>
<icon
:size="16"
name="external-link"
/>
</a> </a>
</div> </div>
......
---
title: Opens "view full report" links in a new window
merge_request: 6806
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment