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
All threads resolved!
Compare and Show latest version
2 files
+ 11
7
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -9,7 +9,8 @@ export default {
props: {
title: {
type: String,
required: true,
required: false,
default: '',
},
description: {
type: String,
@@ -63,6 +64,7 @@ export default {
>
<header
class="gl-border-b gl-flex gl-flex-wrap gl-justify-between gl-gap-x-5 gl-gap-y-2 gl-rounded-t-base gl-border-default gl-bg-default gl-px-5 gl-py-4"
:class="{ 'gl-border-b-0 gl-rounded-base': !$scopedSlots.default }"
>
<div class="gl-flex gl-flex-col gl-self-center">
<h2
@@ -71,6 +73,7 @@ export default {
>
<slot v-if="$scopedSlots.title" name="title"></slot>
<template v-else>{{ title }}</template>
<span
v-if="displayedCount || $scopedSlots.count"
class="gl-inline-flex gl-items-center gl-gap-2 gl-text-sm gl-text-subtle"
@@ -113,6 +116,7 @@ export default {
</div>
<div
v-if="$scopedSlots.default || $scopedSlots.pagination"
class="crud-body gl-mx-5 gl-my-4"
:class="{ 'gl-rounded-b-base': !$scopedSlots.footer }"
data-testid="crud-body"
Loading