|
45 | 45 | v-if="hasPermission(LfPermission.organizationCreate)" |
46 | 46 | type="primary" |
47 | 47 | size="medium" |
48 | | - @click="organizationCreate = true" |
| 48 | + @click="isOrganizationCreateModalOpen = true" |
49 | 49 | > |
50 | 50 | Add organization |
51 | 51 | </lf-button> |
|
77 | 77 | :is-page-loading="loading" |
78 | 78 | :is-table-loading="tableLoading" |
79 | 79 | @update:pagination="onPaginationChange" |
80 | | - @on-add-organization="organizationCreate = true" |
| 80 | + @on-add-organization="isOrganizationCreateModalOpen = true" |
81 | 81 | /> |
82 | 82 | </div> |
83 | 83 | </app-page-wrapper> |
84 | 84 |
|
85 | | - <lf-organization-add v-if="organizationCreate" v-model="organizationCreate" /> |
| 85 | + <lf-organization-add v-if="isOrganizationCreateModalOpen" v-model="isOrganizationCreateModalOpen" /> |
86 | 86 | </template> |
87 | 87 |
|
88 | 88 | <script setup lang="ts"> |
@@ -115,7 +115,7 @@ const { buildApiFilter } = filterApiService(); |
115 | 115 | const organizationStore = useOrganizationStore(); |
116 | 116 | const { filters } = storeToRefs(organizationStore); |
117 | 117 |
|
118 | | -const organizationCreate = ref(false); |
| 118 | +const isOrganizationCreateModalOpen = ref(false); |
119 | 119 |
|
120 | 120 | const organizationFilter = ref<InstanceType<typeof LfFilter> | null>(null); |
121 | 121 |
|
@@ -145,13 +145,11 @@ const queryParams = ref({ |
145 | 145 | const organizationsQueryKey = computed(() => [ |
146 | 146 | TanstackKey.ORGANIZATIONS_LIST, |
147 | 147 | selectedProjectGroup.value?.id, |
148 | | - { |
149 | | - search: queryParams.value.search, |
150 | | - offset: queryParams.value.offset, |
151 | | - limit: queryParams.value.limit, |
152 | | - orderBy: queryParams.value.orderBy, |
153 | | - segments: selectedProjectGroup.value?.id ? [selectedProjectGroup.value.id] : [], |
154 | | - }, |
| 148 | + queryParams.value.search, |
| 149 | + queryParams.value.offset, |
| 150 | + queryParams.value.limit, |
| 151 | + queryParams.value.orderBy, |
| 152 | + selectedProjectGroup.value?.id ? [selectedProjectGroup.value.id] : [], |
155 | 153 | ]); |
156 | 154 |
|
157 | 155 | // Query for organizations list with caching |
|
0 commit comments