From 2ca7c44caede88852d8fd5ff5aed3e4ea4d6661d Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 21 Jun 2024 14:30:39 +0200 Subject: [PATCH 01/62] feat(AccountConnections): use VnToken --- src/pages/Account/AccountConnections.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Account/AccountConnections.vue b/src/pages/Account/AccountConnections.vue index 98208e5f2..4d16d1ecd 100644 --- a/src/pages/Account/AccountConnections.vue +++ b/src/pages/Account/AccountConnections.vue @@ -29,15 +29,15 @@ const filter = { order: 'created DESC', }; -const urlPath = 'AccessTokens'; +const urlPath = 'VnTokens'; const refresh = () => paginateRef.value.fetch(); const navigate = (id) => router.push({ name: 'AccountSummary', params: { id } }); -const killSession = async (id) => { +const killSession = async ({ userId, created }) => { try { - await axios.delete(`${urlPath}/${id}`); + await axios.post(`${urlPath}/killSession`, { userId, created }); paginateRef.value.fetch(); notify(t('Session killed'), 'positive'); } catch (error) { @@ -86,7 +86,7 @@ const killSession = async (id) => { openConfirmationModal( t('Session will be killed'), t('Are you sure you want to continue?'), - () => killSession(row.id) + () => killSession(row) ) " outline From b59f8374b3a441e6acff990ee63075e75d2ee0dc Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 4 Jul 2024 17:28:45 +0200 Subject: [PATCH 02/62] perf: hide icon for VnInputDate --- src/components/common/VnInputDate.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index 184f8a158..b22de3606 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -9,6 +9,10 @@ const $props = defineProps({ type: Boolean, default: false, }, + showEvent: { + type: Boolean, + default: true, + }, }); const { t } = useI18n(); @@ -107,7 +111,7 @@ watch( isPopupOpen = false; " /> - + Date: Thu, 4 Jul 2024 17:31:08 +0200 Subject: [PATCH 03/62] feat: dense rows --- src/pages/Item/ItemFixedPrice.vue | 73 ++++++++++++++++++++++++++----- 1 file changed, 61 insertions(+), 12 deletions(-) diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue index 2ecd1f21b..ea1d92e7b 100644 --- a/src/pages/Item/ItemFixedPrice.vue +++ b/src/pages/Item/ItemFixedPrice.vue @@ -108,8 +108,10 @@ const defaultColumnAttrs = { sortable: true, }; -const columns = computed(() => [ +const columns = ref([ { + sortable: true, + align: 'left', label: t('item.fixedPrice.itemId'), name: 'itemId', field: 'itemFk', @@ -380,6 +382,7 @@ onUnmounted(() => (stateStore.rightDrawer = false)); (stateStore.rightDrawer = false)); - + + +