Commit 8238c1e3 authored by Dheeraj Joshi's avatar Dheeraj Joshi Committed by Ezekiel Kigbo

Update GlButton variants for DAST & On-demand scans

parent ea525f3b
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
variant: { variant: {
type: String, type: String,
required: false, required: false,
default: 'success', default: 'confirm',
}, },
category: { category: {
type: String, type: String,
......
...@@ -475,7 +475,7 @@ export default { ...@@ -475,7 +475,7 @@ export default {
<div class="gl-mt-6 gl-pt-6"> <div class="gl-mt-6 gl-pt-6">
<gl-button <gl-button
type="submit" type="submit"
variant="success" variant="confirm"
class="js-no-auto-disable" class="js-no-auto-disable"
data-testid="on-demand-scan-submit-button" data-testid="on-demand-scan-submit-button"
:disabled="isSubmitButtonDisabled" :disabled="isSubmitButtonDisabled"
...@@ -484,7 +484,7 @@ export default { ...@@ -484,7 +484,7 @@ export default {
{{ s__('OnDemandScans|Save and run scan') }} {{ s__('OnDemandScans|Save and run scan') }}
</gl-button> </gl-button>
<gl-button <gl-button
variant="success" variant="confirm"
category="secondary" category="secondary"
data-testid="on-demand-scan-save-button" data-testid="on-demand-scan-save-button"
:disabled="isSaveButtonDisabled" :disabled="isSaveButtonDisabled"
......
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
</p> </p>
<gl-button <gl-button
:href="newProfilePath" :href="newProfilePath"
variant="success" variant="confirm"
category="secondary" category="secondary"
data-testid="create-profile-link" data-testid="create-profile-link"
> >
......
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
<gl-button <gl-button
v-else-if="canEnable" v-else-if="canEnable"
variant="success" variant="confirm"
category="primary" category="primary"
:href="feature.configuration_path" :href="feature.configuration_path"
data-testid="enable-button" data-testid="enable-button"
......
...@@ -235,7 +235,7 @@ export default { ...@@ -235,7 +235,7 @@ export default {
</h2> </h2>
<gl-dropdown <gl-dropdown
:text="$options.i18n.newProfileDropdownLabel" :text="$options.i18n.newProfileDropdownLabel"
variant="success" variant="confirm"
right right
class="gl-ml-auto" class="gl-ml-auto"
> >
......
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
<gl-button <gl-button
v-if="!hasValidationPassed(profile.validationStatus)" v-if="!hasValidationPassed(profile.validationStatus)"
:disabled="!canValidateProfile(profile.validationStatus)" :disabled="!canValidateProfile(profile.validationStatus)"
variant="info" variant="confirm"
category="tertiary" category="tertiary"
size="small" size="small"
@click="setValidatingProfile(profile)" @click="setValidatingProfile(profile)"
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
> >
<gl-button <gl-button
v-else v-else
variant="info" variant="confirm"
category="tertiary" category="tertiary"
size="small" size="small"
@click="setRevokeValidationProfile(profile)" @click="setRevokeValidationProfile(profile)"
......
...@@ -384,7 +384,7 @@ export default { ...@@ -384,7 +384,7 @@ export default {
<gl-button <gl-button
type="submit" type="submit"
variant="success" variant="confirm"
class="js-no-auto-disable" class="js-no-auto-disable"
data-testid="dast-scanner-profile-form-submit-button" data-testid="dast-scanner-profile-form-submit-button"
:disabled="isSubmitDisabled" :disabled="isSubmitDisabled"
......
...@@ -414,7 +414,7 @@ export default { ...@@ -414,7 +414,7 @@ export default {
<gl-button <gl-button
:disabled="isPolicyProfile" :disabled="isPolicyProfile"
type="submit" type="submit"
variant="success" variant="confirm"
class="js-no-auto-disable" class="js-no-auto-disable"
data-testid="dast-site-profile-form-submit-button" data-testid="dast-site-profile-form-submit-button"
:loading="isLoading" :loading="isLoading"
......
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
text: s__('DastSiteValidation|Validate'), text: s__('DastSiteValidation|Validate'),
attributes: [ attributes: [
{ disabled: this.hasErrors }, { disabled: this.hasErrors },
{ variant: 'success' }, { variant: 'confirm' },
{ category: 'primary' }, { category: 'primary' },
{ 'data-testid': 'validate-dast-site-button' }, { 'data-testid': 'validate-dast-site-button' },
], ],
...@@ -230,7 +230,7 @@ export default { ...@@ -230,7 +230,7 @@ export default {
:label="s__('DastSiteValidation|Step 2 - Add following text to the target site')" :label="s__('DastSiteValidation|Step 2 - Add following text to the target site')"
> >
<gl-button <gl-button
variant="info" variant="confirm"
category="secondary" category="secondary"
size="small" size="small"
icon="download" icon="download"
......
...@@ -363,7 +363,7 @@ exports[`OnDemandScansScannerProfileSelector renders properly without profiles 1 ...@@ -363,7 +363,7 @@ exports[`OnDemandScansScannerProfileSelector renders properly without profiles 1
</p> </p>
<a <a
class="btn btn-success btn-md gl-button btn-success-secondary" class="btn btn-confirm btn-md gl-button btn-confirm-secondary"
data-testid="create-profile-link" data-testid="create-profile-link"
href="/test/new/scanner/profile/path" href="/test/new/scanner/profile/path"
> >
......
...@@ -363,7 +363,7 @@ exports[`OnDemandScansSiteProfileSelector renders properly without profiles 1`] ...@@ -363,7 +363,7 @@ exports[`OnDemandScansSiteProfileSelector renders properly without profiles 1`]
</p> </p>
<a <a
class="btn btn-success btn-md gl-button btn-success-secondary" class="btn btn-confirm btn-md gl-button btn-confirm-secondary"
data-testid="create-profile-link" data-testid="create-profile-link"
href="/test/new/site/profile/path" href="/test/new/site/profile/path"
> >
......
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