Commit aded595a authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'rename-create-issue' into 'master'

Rename Submit issue to Create issue in boards and docs

See merge request gitlab-org/gitlab!58243
parents b7049969 2aa8935b
......@@ -10,7 +10,7 @@ import ProjectSelect from './project_select.vue';
export default {
name: 'BoardNewIssue',
i18n: {
submit: __('Submit issue'),
submit: __('Create issue'),
cancel: __('Cancel'),
},
components: {
......
......@@ -121,7 +121,7 @@ export default {
variant="success"
category="primary"
type="submit"
>{{ __('Submit issue') }}</gl-button
>{{ __('Create issue') }}</gl-button
>
<gl-button
ref="cancelButton"
......
---
title: Rename Submit issue to Create issue in boards and docs
merge_request: 58243
author: Yogi (@yo)
type: changed
......@@ -113,7 +113,7 @@ To create an issue:
1. Go to **Issues > List**.
1. In the top right, click **New issue**.
1. Complete the fields. (If you have a reference topic that lists each field, link to it here.)
1. Click **Submit issue**.
1. Click **Create issue**.
The issue is created. You can view it by going to **Issues > List**.
```
......
......@@ -39,7 +39,7 @@ Incident, you have two options to do this manually.
1. Go to **Issues > List**, and select **New issue**.
1. In the **Type** dropdown, select **Incident**. Only fields relevant to
incidents are displayed on the page.
1. Create the incident as needed, and select **Submit issue** to save the
1. Create the incident as needed, and select **Create issue** to save the
incident.
![Incident List Create](img/new_incident_create_v13_4.png)
......
......@@ -119,7 +119,7 @@ the unresolved threads.
![Issue mentioning threads in a merge request](img/preview_issue_for_threads.png)
Hitting **Submit issue** causes all threads to be marked as resolved and
Hitting **Create issue** causes all threads to be marked as resolved and
add a note referring to the newly created issue.
![Mark threads as resolved notice](img/resolve_thread_issue_notice.png)
......
......@@ -19,7 +19,7 @@ You can make an issue confidential during issue creation or by editing
an existing one.
When you create a new issue, a checkbox right below the text area is available
to mark the issue as confidential. Check that box and hit the **Submit issue**
to mark the issue as confidential. Check that box and hit the **Create issue**
button to create the issue. For existing issues, edit them, check the
confidential checkbox and hit **Save changes**.
......
......@@ -27,7 +27,7 @@ RSpec.describe 'Issue Boards new issue', :js do
page.within(first('.board-new-issue-form')) do
find('.form-control').set('new issue')
click_button 'Submit issue'
click_button 'Create issue'
end
wait_for_requests
......
......@@ -137,7 +137,7 @@ RSpec.describe 'epics swimlanes', :js do
page.within(first('.board-new-issue-form')) do
find('.form-control').set('bug')
click_button 'Submit issue'
click_button 'Create issue'
end
wait_for_all_requests
......
......@@ -29400,9 +29400,6 @@ msgstr ""
msgid "Submit feedback"
msgstr ""
msgid "Submit issue"
msgstr ""
msgid "Submit review"
msgstr ""
......
......@@ -60,7 +60,7 @@ RSpec.describe 'Issue Boards new issue', :js do
page.within(first('.board-new-issue-form')) do
find('.form-control').set('bug')
click_button 'Submit issue'
click_button 'Create issue'
end
wait_for_requests
......@@ -85,7 +85,7 @@ RSpec.describe 'Issue Boards new issue', :js do
page.within(first('.board-new-issue-form')) do
find('.form-control').set('bug')
click_button 'Submit issue'
click_button 'Create issue'
end
wait_for_requests
......@@ -100,7 +100,7 @@ RSpec.describe 'Issue Boards new issue', :js do
page.within(first('.board-new-issue-form')) do
find('.form-control').set('new issue')
click_button 'Submit issue'
click_button 'Create issue'
end
wait_for_requests
......
......@@ -33,7 +33,7 @@ RSpec.describe 'Group Boards' do
find('.gl-new-dropdown-item button').click
end
click_button 'Submit issue'
click_button 'Create issue'
expect(page).to have_content(issue_title)
end
......
......@@ -121,7 +121,7 @@ RSpec.describe 'Users > Terms' do
enforce_terms
click_button 'Submit issue'
click_button 'Create issue'
expect(current_path).to eq(terms_path)
......
......@@ -111,7 +111,7 @@ describe('Issue boards new issue form', () => {
describe('submit success', () => {
it('creates new issue', () => {
wrapper.setData({ title: 'submit issue' });
wrapper.setData({ title: 'create issue' });
return Vue.nextTick()
.then(submitIssue)
......@@ -122,7 +122,7 @@ describe('Issue boards new issue form', () => {
it('enables button after submit', () => {
jest.spyOn(wrapper.vm, 'submit').mockImplementation();
wrapper.setData({ title: 'submit issue' });
wrapper.setData({ title: 'create issue' });
return Vue.nextTick()
.then(submitIssue)
......@@ -132,7 +132,7 @@ describe('Issue boards new issue form', () => {
});
it('clears title after submit', () => {
wrapper.setData({ title: 'submit issue' });
wrapper.setData({ title: 'create issue' });
return Vue.nextTick()
.then(submitIssue)
......@@ -143,17 +143,17 @@ describe('Issue boards new issue form', () => {
it('sets detail issue after submit', () => {
expect(boardsStore.detail.issue.title).toBe(undefined);
wrapper.setData({ title: 'submit issue' });
wrapper.setData({ title: 'create issue' });
return Vue.nextTick()
.then(submitIssue)
.then(() => {
expect(boardsStore.detail.issue.title).toBe('submit issue');
expect(boardsStore.detail.issue.title).toBe('create issue');
});
});
it('sets detail list after submit', () => {
wrapper.setData({ title: 'submit issue' });
wrapper.setData({ title: 'create issue' });
return Vue.nextTick()
.then(submitIssue)
......@@ -164,7 +164,7 @@ describe('Issue boards new issue form', () => {
it('sets detail weight after submit', () => {
boardsStore.weightFeatureAvailable = true;
wrapper.setData({ title: 'submit issue' });
wrapper.setData({ title: 'create issue' });
return Vue.nextTick()
.then(submitIssue)
......@@ -175,7 +175,7 @@ describe('Issue boards new issue form', () => {
it('does not set detail weight after submit', () => {
boardsStore.weightFeatureAvailable = false;
wrapper.setData({ title: 'submit issue' });
wrapper.setData({ title: 'create issue' });
return Vue.nextTick()
.then(submitIssue)
......
......@@ -86,7 +86,7 @@ describe('Issue boards new issue form', () => {
describe('submit success', () => {
it('creates new issue', async () => {
wrapper.setData({ title: 'submit issue' });
wrapper.setData({ title: 'create issue' });
await vm.$nextTick();
await submitIssue();
......@@ -95,7 +95,7 @@ describe('Issue boards new issue form', () => {
it('enables button after submit', async () => {
jest.spyOn(wrapper.vm, 'submit').mockImplementation();
wrapper.setData({ title: 'submit issue' });
wrapper.setData({ title: 'create issue' });
await vm.$nextTick();
await submitIssue();
......@@ -103,7 +103,7 @@ describe('Issue boards new issue form', () => {
});
it('clears title after submit', async () => {
wrapper.setData({ title: 'submit issue' });
wrapper.setData({ title: 'create issue' });
await vm.$nextTick();
await submitIssue();
......
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