Skip to content

Commit

Permalink
23439 - bug fixing (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfekete authored Oct 10, 2024
1 parent f025d32 commit 0d324d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/interfaces/business-i.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export interface BusinessWarningI {

// comments come from business-filings-ui project ApiBusinessIF interface
export interface BusinessI extends SlimBusinessI {
adminFreeze: boolean
allowedActions: AllowedActionsI
amalgamatedInto?: AmalgamatedIntoI
arMaxDate?: IsoDatePacific // not used
Expand Down
7 changes: 6 additions & 1 deletion src/pages/dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ const pendingAddress = computed(() => {
}
return false
})
const isChangeAddressDisabled = computed(() => business.currentBusiness.adminFreeze || pendingAddress.value)
const isChangeDirectorDisabled = computed(() => business.currentBusiness.adminFreeze)
</script>

<template>
Expand Down Expand Up @@ -261,7 +265,7 @@ const pendingAddress = computed(() => {
<UButton
variant="ghost"
icon="i-mdi-pencil"
:disabled="pendingAddress"
:disabled="isChangeAddressDisabled"
:label="$t('button.general.change')"
data-cy="address-change-button"
@click="()=>{
Expand All @@ -287,6 +291,7 @@ const pendingAddress = computed(() => {
<UButton
variant="ghost"
icon="i-mdi-pencil"
:disabled="isChangeDirectorDisabled"
:label="$t('button.general.change')"
data-cy="change-button"
@click="()=>{
Expand Down

0 comments on commit 0d324d4

Please sign in to comment.