feat: remove appendParams feature
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Javier Segarra 2024-11-08 09:23:26 +01:00
parent 987c28e745
commit 1c3811723e
3 changed files with 3 additions and 8 deletions

View File

@ -58,7 +58,7 @@ const $props = defineProps({
default: 'flex-one',
},
searchUrl: {
type: String,
type: [String, Boolean],
default: 'table',
},
isEditable: {
@ -69,10 +69,6 @@ const $props = defineProps({
type: Boolean,
default: false,
},
appendParams: {
type: Boolean,
default: true,
},
hasSubToolbar: {
type: Boolean,
default: null,

View File

@ -248,7 +248,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
function updateStateParams() {
const newUrl = { path: route.path, query: { ...(route.query ?? {}) } };
if (store?.appendParams ?? true)
if (store?.searchUrl)
newUrl.query[store.searchUrl] = JSON.stringify(store.currentFilter);
if (store.navigate) {

View File

@ -152,7 +152,6 @@ const rowClick = ({ id }) =>
:column-search="false"
url="Tickets"
:columns="columns"
append-params="false"
:without-header="true"
auto-load
:row-click="rowClick"
@ -160,7 +159,7 @@ const rowClick = ({ id }) =>
:disable-option="{ card: true, table: true }"
class="full-width"
:disable-infinite-scroll="true"
search-url="tickets"
:search-url="false"
>
<template #column-nickname="{ row }">
<span class="link">