Commit 55203396 authored by Dheeraj Joshi's avatar Dheeraj Joshi Committed by Andrew Fontaine

Refactor DAST Profiles library

parent 51823053
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
<slot name="actions" :profile="item"></slot> <slot name="actions" :profile="item"></slot>
<gl-dropdown <gl-dropdown
class="gl-display-none gl-display-sm-inline-flex!" class="gl-display-none gl-md-display-inline-flex!"
toggle-class="gl-border-0! gl-shadow-none!" toggle-class="gl-border-0! gl-shadow-none!"
no-caret no-caret
right right
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
v-if="item.editPath" v-if="item.editPath"
:href="item.editPath" :href="item.editPath"
category="tertiary" category="tertiary"
class="gl-ml-3 gl-my-1 gl-display-sm-none" class="gl-ml-3 gl-my-1 gl-display-md-none"
size="small" size="small"
>{{ __('Edit') }}</gl-button >{{ __('Edit') }}</gl-button
> >
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
icon="remove" icon="remove"
variant="danger" variant="danger"
size="small" size="small"
class="gl-mx-3 gl-my-1 gl-display-sm-none" class="gl-mx-3 gl-my-1 gl-display-md-none"
:title="s__('DastProfiles|Delete profile')" :title="s__('DastProfiles|Delete profile')"
@click="prepareProfileDeletion(item.id)" @click="prepareProfileDeletion(item.id)"
/> />
......
<script> <script>
import { GlBadge } from '@gitlab/ui';
import {
SCAN_TYPE,
SCAN_TYPE_LABEL,
} from 'ee/security_configuration/dast_scanner_profiles/constants';
import ProfilesList from './dast_profiles_list.vue'; import ProfilesList from './dast_profiles_list.vue';
import ScanTypeBadge from './dast_scan_type_badge.vue';
export default { export default {
components: { components: {
ProfilesList, ProfilesList,
GlBadge, ScanTypeBadge,
}, },
SCAN_TYPE,
SCAN_TYPE_LABEL,
}; };
</script> </script>
<template> <template>
<profiles-list v-bind="$attrs" v-on="$listeners"> <profiles-list v-bind="$attrs" v-on="$listeners">
<template #cell(scanType)="{ value }"> <template #cell(scanType)="{ value }">
<gl-badge size="sm" :variant="value === $options.SCAN_TYPE.ACTIVE ? 'warning' : 'neutral'"> <scan-type-badge :scan-type="value" />
{{ $options.SCAN_TYPE_LABEL[value].toLowerCase() }}
</gl-badge>
</template> </template>
</profiles-list> </profiles-list>
</template> </template>
---
title: Improve DAST Profiles library for smaller devices
merge_request: 51315
author:
type: changed
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