From 41cff802adb4d12d21b7d415f81b5b2dd86dfce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20LAGIER?= Date: Thu, 13 Jun 2024 16:54:31 +0200 Subject: [PATCH] feature: add topics list element warning (#37) * add topics list element warning * cleanner solution --- .../bcf-topics-table/BcfTopicsTable.vue | 13 +++-- .../BcfTopicActionsCell.vue | 55 ++++++++++++++++++- 2 files changed, 62 insertions(+), 6 deletions(-) diff --git a/src/components/bcf-topics-table/BcfTopicsTable.vue b/src/components/bcf-topics-table/BcfTopicsTable.vue index abea79b..7842416 100644 --- a/src/components/bcf-topics-table/BcfTopicsTable.vue +++ b/src/components/bcf-topics-table/BcfTopicsTable.vue @@ -54,10 +54,7 @@ {{ toShortDateFormat(topic.creation_date) }} @@ -110,6 +107,14 @@ export default { type: Map, default: () => new Map(), }, + warningCallback: { + type: Function, + default: () => false + }, + warningTooltipMessage: { + type: String, + default: "" + } }, emits: [ "open-topic", 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..a607a50 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,14 +1,22 @@ @@ -18,6 +26,14 @@ export default { topic: { type: Object, required: true + }, + warning: { + type: Boolean, + default: false + }, + warningTooltipMessage: { + type: String, + default: "" } }, emits: [ @@ -28,8 +44,43 @@ export default {