From 9c33d8285d19eec1f7d67bec18f1407199133c32 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Wed, 1 Dec 2021 11:37:32 +1100 Subject: [PATCH] feat(#384): make summary prop optional (#385) --- .changeset/unlucky-papayas-pull.md | 5 +++++ packages/druxt/src/components/DruxtDebug.vue | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .changeset/unlucky-papayas-pull.md diff --git a/.changeset/unlucky-papayas-pull.md b/.changeset/unlucky-papayas-pull.md new file mode 100644 index 000000000..c68329b99 --- /dev/null +++ b/.changeset/unlucky-papayas-pull.md @@ -0,0 +1,5 @@ +--- +"druxt": minor +--- + +Make summary prop optional on DruxtDebug component diff --git a/packages/druxt/src/components/DruxtDebug.vue b/packages/druxt/src/components/DruxtDebug.vue index 79c15885a..53e99211f 100644 --- a/packages/druxt/src/components/DruxtDebug.vue +++ b/packages/druxt/src/components/DruxtDebug.vue @@ -21,7 +21,7 @@ export default { */ summary: { type: String, - required: true, + default: 'Debug', }, }, @@ -42,7 +42,9 @@ export default { * * @return {string} */ - title: ({ module, summary }) => `[${module.$options._componentTag}] ${summary}`, + title: ({ module, summary }) => module.$options._componentTag + ? `[${module.$options._componentTag}] ${summary}` + : summary, }, };