From f9bbc7876e1a912ffffbf87982882b19220e8398 Mon Sep 17 00:00:00 2001 From: samaradel Date: Sun, 15 Dec 2024 13:23:10 +0200 Subject: [PATCH 1/2] Check if the filters form are valid or changed to apply refresh btn --- .../playground/src/components/filters/TfFiltersContainer.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/playground/src/components/filters/TfFiltersContainer.vue b/packages/playground/src/components/filters/TfFiltersContainer.vue index ce28871e3a..6b18c5279c 100644 --- a/packages/playground/src/components/filters/TfFiltersContainer.vue +++ b/packages/playground/src/components/filters/TfFiltersContainer.vue @@ -20,9 +20,8 @@ variant="outlined" color="secondary" density="compact" - :disabled="!valid || !changed" @click.stop="apply" - text="Apply" + :text="valid || changed ? 'Apply' : 'Refresh'" :loading="loading" class="mx-2" /> From 3bfcd9c334edb927efbf5f9328904c7e4f13f034 Mon Sep 17 00:00:00 2001 From: samaradel Date: Sun, 15 Dec 2024 13:31:32 +0200 Subject: [PATCH 2/2] modify condition --- .../playground/src/components/filters/TfFiltersContainer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playground/src/components/filters/TfFiltersContainer.vue b/packages/playground/src/components/filters/TfFiltersContainer.vue index 6b18c5279c..c38511e301 100644 --- a/packages/playground/src/components/filters/TfFiltersContainer.vue +++ b/packages/playground/src/components/filters/TfFiltersContainer.vue @@ -21,7 +21,7 @@ color="secondary" density="compact" @click.stop="apply" - :text="valid || changed ? 'Apply' : 'Refresh'" + :text="!valid || !changed ? 'Refresh' : 'Apply'" :loading="loading" class="mx-2" />