diff --git a/frontend/components/text-classifier/labeling-rules/RuleDefinition.vue b/frontend/components/text-classifier/labeling-rules/RuleDefinition.vue
index 5412121d88e..b57abaf0e61 100644
--- a/frontend/components/text-classifier/labeling-rules/RuleDefinition.vue
+++ b/frontend/components/text-classifier/labeling-rules/RuleDefinition.vue
@@ -5,25 +5,16 @@
-
- Records
-
- {{ recordsMetric.value }}
-
-
Manage rules
@@ -44,66 +36,87 @@
diff --git a/frontend/components/text-classifier/labeling-rules/RuleLabelsDefinition.vue b/frontend/components/text-classifier/labeling-rules/RuleLabelsDefinition.vue
index e8b53b9d5a8..9ee6a8a4389 100644
--- a/frontend/components/text-classifier/labeling-rules/RuleLabelsDefinition.vue
+++ b/frontend/components/text-classifier/labeling-rules/RuleLabelsDefinition.vue
@@ -18,9 +18,14 @@
@@ -33,13 +38,12 @@
v-for="label in visibleLabels"
:id="label.class"
:key="`${label.class}`"
- v-model="selectedLabels"
- :allow-multiple="isMultiLabel"
+ v-model="selectedLabelsVModel"
+ :allow-multiple="false"
:label="label"
class="label-button"
:data-title="label.class"
:value="label.class"
- @change="updateLabels"
>
@@ -47,14 +51,14 @@
v-if="visibleLabels.length < filteredLabels.length"
href="#"
class="feedback-interactions__more"
- @click.prevent="expandLabels()"
+ @click.prevent="expandLabels"
>+{{ filteredLabels.length - visibleLabels.length }}
Show less
@@ -69,25 +73,11 @@
>.
-
- {{
- saved
- ? "The rule has been saved"
- : "This query with this label are already saved as rule"
- }}.
-
+ {{ ruleInfo }}
Save rule
@@ -96,59 +86,77 @@