From dc9d6b6b3fb0971f5ff576a8c9ffb03c5d34698c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20LAGIER?= Date: Thu, 13 Jun 2024 11:37:24 +0200 Subject: [PATCH] add topics list element warning --- .../bcf-topics-table/BcfTopicsTable.vue | 67 +++++++++++++++++-- .../BcfTopicActionsCell.vue | 8 ++- 2 files changed, 68 insertions(+), 7 deletions(-) diff --git a/src/components/bcf-topics-table/BcfTopicsTable.vue b/src/components/bcf-topics-table/BcfTopicsTable.vue index abea79b..64a68b7 100644 --- a/src/components/bcf-topics-table/BcfTopicsTable.vue +++ b/src/components/bcf-topics-table/BcfTopicsTable.vue @@ -51,13 +51,20 @@ @@ -110,6 +117,14 @@ export default { type: Map, default: () => new Map(), }, + warningCallback: { + type: Function, + default: () => false + }, + warningTooltipMessage: { + type: String, + default: "" + } }, emits: [ "open-topic", @@ -140,3 +155,45 @@ export default { } }; + + diff --git a/src/components/bcf-topics-table/bcf-topic-actions-cell/BcfTopicActionsCell.vue b/src/components/bcf-topics-table/bcf-topic-actions-cell/BcfTopicActionsCell.vue index 18f9988..8ae0440 100644 --- a/src/components/bcf-topics-table/bcf-topic-actions-cell/BcfTopicActionsCell.vue +++ b/src/components/bcf-topics-table/bcf-topic-actions-cell/BcfTopicActionsCell.vue @@ -1,13 +1,13 @@ @@ -18,6 +18,10 @@ export default { topic: { type: Object, required: true + }, + warning: { + type: Boolean, + default: false } }, emits: [