Skip to content

Commit

Permalink
Strata/Hosts - UI: View btn (#407)
Browse files Browse the repository at this point in the history
* view button aria label hosts

* aria label for dashboard view btn strata
  • Loading branch information
deetz99 authored Dec 18, 2024
1 parent 66dc5b9 commit 86b4fb2
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
3 changes: 2 additions & 1 deletion strr-host-pm-web/app/locales/en-CA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ export default {
contWithReg: 'Continue with Registration',
showDetails: 'Show Details',
hideDetails: 'Hide Details',
returnToStep: 'Return to the step to finish it'
returnToStep: 'Return to the step to finish it',
ariaViewDetails: 'View details for property: {name}, {address}'
},
error: {
createAccount: {
Expand Down
9 changes: 9 additions & 0 deletions strr-host-pm-web/app/pages/dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,15 @@ async function handleItemSelect (row: any) {
<template #actions-data="{ row }">
<UButton
:label="$t('btn.view')"
:aria-label="
$t('btn.ariaViewDetails', {
name: row.name,
address: `${row.address.unitNumber
? row.address.unitNumber + '-'
: ''}${row.address.streetNumber} ${row.address.streetName}, ${row.address.city}`
})
"
:block="true"
@click="handleItemSelect(row)"
/>
</template>
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.14",
"version": "0.0.15",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",
Expand Down
3 changes: 2 additions & 1 deletion strr-strata-web/app/locales/en-CA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export default {
},
btn: {
addStrataHotel: 'Add a strata-titled hotel or motel',
view: 'View'
view: 'View',
ariaViewDetails: 'View details for property: {name}`'
},
label: {
strataName: 'Strata Name',
Expand Down
2 changes: 2 additions & 0 deletions strr-strata-web/app/pages/strata-hotel/dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ async function handleItemSelect (row: any) {
<template #actions-data="{ row }">
<UButton
:label="$t('btn.view')"
:aria-label="$t('btn.ariaViewDetails', { name: row.strataName })"
:block="true"
@click="handleItemSelect(row)"
/>
</template>
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.24",
"version": "0.0.25",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",
Expand Down

0 comments on commit 86b4fb2

Please sign in to comment.