Commit 2ee4bbef authored by Dhiraj Bodicherla's avatar Dhiraj Bodicherla

Remove GlNewButton in select summary component

parent f347f2a3
<script>
import { s__, n__ } from '~/locale';
import { GlNewButton, GlFormSelect } from '@gitlab/ui';
import { GlButton, GlFormSelect } from '@gitlab/ui';
import toast from '~/vue_shared/plugins/global_toast';
import createFlash from '~/flash';
import dismissVulnerability from '../graphql/dismissVulnerability.graphql';
......@@ -12,7 +12,7 @@ const REASON_FALSE_POSITIVE = s__('Security Reports|False positive');
export default {
name: 'SelectionSummary',
components: {
GlNewButton,
GlButton,
GlFormSelect,
},
props: {
......@@ -95,7 +95,7 @@ export default {
class="mx-3 w-auto"
:options="$options.dismissalReasons"
/>
<gl-new-button
<gl-button
type="submit"
class="js-no-auto-disable"
category="secondary"
......@@ -103,7 +103,7 @@ export default {
:disabled="!canDismissVulnerability"
>
{{ s__('Security Reports|Dismiss Selected') }}
</gl-new-button>
</gl-button>
</form>
</div>
</template>
import { mount } from '@vue/test-utils';
import SelectionSummary from 'ee/security_dashboard/components/selection_summary.vue';
import { GlFormSelect, GlNewButton } from '@gitlab/ui';
import { GlFormSelect, GlButton } from '@gitlab/ui';
import createFlash from '~/flash';
import toast from '~/vue_shared/plugins/global_toast';
......@@ -21,7 +21,7 @@ describe('Selection Summary component', () => {
},
};
const dismissButton = () => wrapper.find(GlNewButton);
const dismissButton = () => wrapper.find(GlButton);
const dismissMessage = () => wrapper.find({ ref: 'dismiss-message' });
const formSelect = () => wrapper.find(GlFormSelect);
......
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