Skip to content

Commit

Permalink
minor syntax fix and error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds committed Dec 6, 2023
1 parent 5668e83 commit 4c83972
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
4 changes: 1 addition & 3 deletions ppr-ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,7 @@ export default defineComponent({
const proceedAfterError = (proceed: boolean): void => {
localState.errorDisplay = false
// Navigate to Registries dashboard in the event of a login or access error.
if (localState.errorOptions === loginError || localState.errorOptions === authPprError ||
localState.errorOptions === authAssetsError
) {
if ([loginError.title, authPprError.title, authAssetsError.title].includes(localState.errorOptions.title)) {
navigateTo(localState.registryUrl)
}
// for now just refresh app
Expand Down
20 changes: 10 additions & 10 deletions ppr-ui/src/components/tables/common/TableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,10 @@
content-class="left-tooltip pa-5"
transition="fade-transition"
>
<template #activator="{ on }">
<template #activator="{ props }">
<span
class="disabled-text"
v-on="on"
v-bind="props"
>
<img
alt="exemption-icon"
Expand Down Expand Up @@ -748,14 +748,14 @@ export default defineComponent({
return (isRoleQualifiedSupplier.value || isRoleStaffReg.value || isRoleStaff.value) &&
!isRoleStaffSbc.value && !isRoleStaffBcol.value
}),
hasLienForQS: computed(() =>
isRoleQualifiedSupplier.value &&
localState.item.lienRegistrationType &&
localState.item.lienRegistrationType !== APIRegistrationTypes.SECURITY_AGREEMENT
),
hasLockedForQS: computed(() =>
hasLockedState(localState.item) && isRoleQualifiedSupplier.value
)
hasLienForQS: computed(() => {
return isRoleQualifiedSupplier.value &&
localState.item.lienRegistrationType &&
localState.item.lienRegistrationType !== APIRegistrationTypes.SECURITY_AGREEMENT
}),
hasLockedForQS: computed(() => {
return hasLockedState(localState.item) && isRoleQualifiedSupplier.value
})
})
const hasRequiredTransfer = (item: MhRegistrationSummaryIF) => {
Expand Down
2 changes: 1 addition & 1 deletion ppr-ui/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ declare const window: any

// main code
async function start () {
console.log('Starting app from main...') // eslint-disable-line no-console
console.log('Starting app...')
// fetch config from environment and API
// must come first as inits below depend on config
await fetchConfig()
Expand Down

0 comments on commit 4c83972

Please sign in to comment.