Commit 650d6732 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch 'aregnery/update-snippet-button-variant' into 'master'

Update the variant to confrim for creating snippets

See merge request gitlab-org/gitlab!76575
parents c9f77f6e bf17be31
...@@ -230,7 +230,7 @@ export default { ...@@ -230,7 +230,7 @@ export default {
<gl-button <gl-button
category="primary" category="primary"
type="submit" type="submit"
variant="success" variant="confirm"
:disabled="updatePrevented" :disabled="updatePrevented"
data-qa-selector="submit_button" data-qa-selector="submit_button"
data-testid="snippet-submit-btn" data-testid="snippet-submit-btn"
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
href: this.snippet.project href: this.snippet.project
? joinPaths(this.snippet.project.webUrl, '-/snippets/new') ? joinPaths(this.snippet.project.webUrl, '-/snippets/new')
: joinPaths('/', gon.relative_url_root, '/-/snippets/new'), : joinPaths('/', gon.relative_url_root, '/-/snippets/new'),
variant: 'success', variant: 'confirm',
category: 'secondary', category: 'secondary',
}, },
{ {
......
...@@ -252,7 +252,7 @@ describe('Snippet header component', () => { ...@@ -252,7 +252,7 @@ describe('Snippet header component', () => {
disabled: false, disabled: false,
href: `/foo/-/snippets/new`, href: `/foo/-/snippets/new`,
text: 'New snippet', text: 'New snippet',
variant: 'success', variant: 'confirm',
}, },
]), ]),
); );
......
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