Commit 0de00b4e authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents a2034929 735b6fb1
...@@ -52,6 +52,11 @@ export default { ...@@ -52,6 +52,11 @@ export default {
required: false, required: false,
default: '', default: '',
}, },
showReportSectionStatus: {
type: Boolean,
required: false,
default: true,
},
}, },
computed: { computed: {
issuesWithState() { issuesWithState() {
...@@ -81,6 +86,7 @@ export default { ...@@ -81,6 +86,7 @@ export default {
:status="wrapped.status" :status="wrapped.status"
:component="component" :component="component"
:is-new="wrapped.isNew" :is-new="wrapped.isNew"
:show-report-section-status="showReportSectionStatus"
/> />
</smart-virtual-list> </smart-virtual-list>
</template> </template>
...@@ -34,12 +34,22 @@ export default { ...@@ -34,12 +34,22 @@ export default {
required: false, required: false,
default: false, default: false,
}, },
showReportSectionStatusIcon: {
type: Boolean,
required: false,
default: true,
},
}, },
}; };
</script> </script>
<template> <template>
<li :class="{ 'is-dismissed': issue.isDismissed }" class="report-block-list-issue"> <li :class="{ 'is-dismissed': issue.isDismissed }" class="report-block-list-issue">
<issue-status-icon :status="status" :status-icon-size="statusIconSize" class="append-right-5" /> <issue-status-icon
v-if="showReportSectionStatusIcon"
:status="status"
:status-icon-size="statusIconSize"
class="append-right-5"
/>
<component :is="component" v-if="component" :issue="issue" :status="status" :is-new="isNew" /> <component :is="component" v-if="component" :issue="issue" :status="status" :is-new="isNew" />
</li> </li>
......
...@@ -73,6 +73,11 @@ export default { ...@@ -73,6 +73,11 @@ export default {
default: () => ({}), default: () => ({}),
required: false, required: false,
}, },
showReportSectionStatusIcon: {
type: Boolean,
required: false,
default: true,
},
}, },
data() { data() {
...@@ -166,6 +171,7 @@ export default { ...@@ -166,6 +171,7 @@ export default {
:resolved-issues="resolvedIssues" :resolved-issues="resolvedIssues"
:neutral-issues="neutralIssues" :neutral-issues="neutralIssues"
:component="component" :component="component"
:show-report-section-status-icon="showReportSectionStatusIcon"
/> />
</slot> </slot>
</div> </div>
......
...@@ -27,9 +27,11 @@ The following are guides to basic GitLab functionality: ...@@ -27,9 +27,11 @@ The following are guides to basic GitLab functionality:
## Git basics ## Git basics
If you're unfamiliar with the command line, these resources will help: If you're familiar with Git on the command line, you can interact with your GitLab projects just as you would with any other Git repository.
These resources will help get further acclimated to working on the command line.
- [Command line basics](command-line-commands.md), for those unfamiliar with the command line interface.
- [Start using Git on the command line](start-using-git.md), for some simple Git commands. - [Start using Git on the command line](start-using-git.md), for some simple Git commands.
- [Command line basics](command-line-commands.md), to create and edit files using the command line.
More Git resources are available at GitLab's [Git documentation](../topics/git/index.md). More Git resources are available at GitLab's [Git documentation](../topics/git/index.md).
...@@ -13,10 +13,12 @@ button (you'll have to paste it on your shell in the next step). ...@@ -13,10 +13,12 @@ button (you'll have to paste it on your shell in the next step).
![Copy the HTTPS or SSH](img/project_clone_url.png) ![Copy the HTTPS or SSH](img/project_clone_url.png)
## On the command line ## Working with project files on the command line
This section has examples of some basic shell commands that you might find useful. For more information, search the web for _bash commands_. This section has examples of some basic shell commands that you might find useful. For more information, search the web for _bash commands_.
Alternatively, you can edit files using your choice of editor (IDE) or the GitLab user interface.
### Clone your project ### Clone your project
Go to your computer's shell and type the following command with your SSH or HTTPS URL: Go to your computer's shell and type the following command with your SSH or HTTPS URL:
......
import { shallowMount } from '@vue/test-utils';
import { STATUS_SUCCESS } from '~/reports/constants';
import ReportItem from '~/reports/components/report_item.vue';
import { componentNames } from '~/reports/components/issue_body';
describe('ReportItem', () => {
describe('showReportSectionStatusIcon', () => {
it('does not render CI Status Icon when showReportSectionStatusIcon is false', () => {
const wrapper = shallowMount(ReportItem, {
propsData: {
issue: { foo: 'bar' },
component: componentNames.TestIssueBody,
status: STATUS_SUCCESS,
showReportSectionStatusIcon: false,
},
});
expect(wrapper.find('issuestatusicon-stub').exists()).toBe(false);
});
it('shows status icon when unspecified', () => {
const wrapper = shallowMount(ReportItem, {
propsData: {
issue: { foo: 'bar' },
component: componentNames.TestIssueBody,
status: STATUS_SUCCESS,
},
});
expect(wrapper.find('issuestatusicon-stub').exists()).toBe(true);
});
});
});
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