From fceeaea1f526df2e478beb564c4587b284d722a4 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 12 Jul 2024 15:22:29 +0200 Subject: [PATCH] feat: replace stickyButtons by subtoolbar --- src/pages/Item/ItemFixedPrice.vue | 58 +++++-------------------- src/pages/Item/ItemFixedPriceFilter.vue | 15 ++++++- 2 files changed, 24 insertions(+), 49 deletions(-) diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue index 5b35670a9..2c55e33e1 100644 --- a/src/pages/Item/ItemFixedPrice.vue +++ b/src/pages/Item/ItemFixedPrice.vue @@ -392,22 +392,6 @@ function highlightNewRow(index) { const openEditTableCellDialog = () => { editTableCellDialogRef.value.show(); }; -async function showBadDates() { - try { - if (!checked.value) fixedPrices.value = fixedPricesOriginalData.value; - else { - rowsSelected.value = []; - const { data } = await axios.get('FixedPrices/filter', { - params: { - showBadDates: checked.value, - }, - }); - fixedPrices.value = data; - } - } catch (error) { - console.error(error); - } -} const onEditCellDataSaved = async () => { rowsSelected.value = []; await fetchFixedPrices(); @@ -480,13 +464,16 @@ onUnmounted(() => (stateStore.rightDrawer = false)); @@ -700,32 +687,7 @@ onUnmounted(() => (stateStore.rightDrawer = false)); {{ t('Add') }} - - - - {{ t('Edit fixed price(s)') }} - - - - - - {{ t('Add') }} - - + { }; const $params = ref({}); onMounted(() => { - ['mine', 'hasMinPrice'].forEach((tag) => ($params.value[tag] = sanitizeParam(tag))); + ['mine', 'hasMinPrice', 'showBadDates'].forEach( + (tag) => ($params.value[tag] = sanitizeParam(tag)) + ); }); const pushParam = (param) => ({ param: { [param]: $params.value[param] }, @@ -109,6 +111,17 @@ const pushParam = (param) => ({ @update:model-value="searchFn(pushParam('mine'))" /> + + + +