Skip to content

Commit

Permalink
typo and api param (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
deetz99 authored Dec 18, 2024
1 parent 6d2bee0 commit 66dc5b9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions strr-base-web/app/composables/useStrrApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ export const useStrrApi = () => {
return undefined
})
}
// TODO: add type filter in call (need in api first)
const resp = await $strrApi<{ applications: T[] }>('/applications')
return type
? resp.applications?.filter(app => app.registration.registrationType === type)
: resp.applications
const resp = await $strrApi<{ applications: T[] }>('/applications', {
query: {
registrationType: type
}
})
return resp.applications
}

const postApplication = async <T extends { registration: any }, R extends T>(body: T) => {
Expand Down
2 changes: 1 addition & 1 deletion strr-host-pm-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "strr-host-pm-web",
"private": true,
"type": "module",
"version": "0.0.13",
"version": "0.0.14",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",
Expand Down
2 changes: 1 addition & 1 deletion strr-platform-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "strr-platform-web",
"private": true,
"type": "module",
"version": "0.0.27",
"version": "0.0.28",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",
Expand Down
1 change: 1 addition & 0 deletions strr-strata-web/app/components/form/StrataDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ onMounted(async () => {
:form-ref="strataDetailsFormRef"
:disabled-fields="['country', 'region']"
:excluded-fields="['streetName', 'streetNumber', 'unitNumber']"
:use-location-desc-label="true"
/>
<UButton
v-if="!strataDetails.buildings.length"
Expand Down
2 changes: 1 addition & 1 deletion strr-strata-web/app/locales/en-CA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default {
},
text: {
comingSoon: 'Short-Term Rental Strata Hotel Registry will be available on December 15, 2024',
isUserRep: 'Are you the strata-title hotel or motel representative?',
isUserRep: 'Are you the strata-titled hotel or motel representative?',
primaryContact: 'This is the primary contact person for the strata-titled hotel or motel.',
buildingsSubText: 'Enter the address for each building that is part of the strata-titled hotel or motel. Include all co-located buildings in your application.'
},
Expand Down
2 changes: 1 addition & 1 deletion strr-strata-web/app/pages/strata-hotel/dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async function handleItemSelect (row: any) {
<template #header>
<div class="flex items-center justify-between">
<h2 class="font-normal">
<ConnectI18nBold translation-path="table.strataHotelList.title" :count="strataHotelList.length" />
<ConnectI18nHelper translation-path="table.strataHotelList.title" :count="strataHotelList.length" />
</h2>
<!-- TODO: filtering post-mvp ? -->
<!-- <UInput
Expand Down
2 changes: 1 addition & 1 deletion strr-strata-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "strr-strata-web",
"private": true,
"type": "module",
"version": "0.0.23",
"version": "0.0.24",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",
Expand Down

0 comments on commit 66dc5b9

Please sign in to comment.