Skip to content
Snippets Groups Projects

Work items child widget: Migrate to crud

Merged Sascha Eggenberger requested to merge work-items-widgets-migration into master
Compare and Show latest version
20 files
+ 424
208
Compare changes
  • Side-by-side
  • Inline
Files
20
<script>
import { GlAlert, GlButton, GlIcon, GlLoadingIcon, GlLink, GlTooltipDirective } from '@gitlab/ui';
import { GlButton, GlIcon, GlLoadingIcon, GlLink, GlTooltipDirective } from '@gitlab/ui';
import { __ } from '~/locale';
export default {
components: {
GlAlert,
GlButton,
GlIcon,
GlLoadingIcon,
@@ -69,11 +68,6 @@ export default {
required: false,
default: null,
},
error: {
type: String,
required: false,
default: '',
},
},
data() {
return {
@@ -221,9 +215,6 @@ export default {
data-testid="crud-body"
>
<gl-loading-icon v-if="isLoading" size="sm" data-testid="crud-loading" />
<gl-alert v-else-if="error" variant="danger" @dismiss="$emit('dismissAlert')">
{{ error }}
</gl-alert>
<span v-else-if="$scopedSlots.empty" class="gl-text-subtle" data-testid="crud-empty">
<slot name="empty"></slot>
</span>
Loading