Skip to content

Commit

Permalink
Add feature flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
meawong committed Jan 3, 2025
1 parent 8c9fceb commit a8beee9
Showing 1 changed file with 29 additions and 14 deletions.
43 changes: 29 additions & 14 deletions app/src/components/existing-request/nr-approved-gray-box.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@
</v-btn>
</div>

<div
v-else-if="showNameChangeButton"
class="d-flex justify-center my-1"
>
<v-btn
class="change-name-now-btn mt-30"
min-width="20rem"
:disabled="disabled"
@click="$emit('goToEntityDashboard')"
>
<strong>Change Name Now</strong>
</v-btn>
</div>

<div
v-else-if="showIncorporateButton"
class="d-flex justify-center my-1"
Expand Down Expand Up @@ -178,6 +164,34 @@
</div>
</div>

<div
v-else-if="showNameChangeButton"
class="d-flex justify-center my-1"
>
<v-btn
v-if="showOpenExternalIcon"
class="change-name-now-external-btn mt-30"
min-width="20rem"
:disabled="disabled"
@click="$emit('goToCorpOnline')"
>
<strong>Change Name Now</strong>
&nbsp;
<v-icon small>
mdi-open-in-new
</v-icon>
</v-btn>
<v-btn
v-else
class="change-name-now-btn mt-30"
min-width="20rem"
:disabled="disabled"
@click="$emit('goToEntityDashboard')"
>
<strong>Change Name Now</strong>
</v-btn>
</div>

<p
v-else
class="mt-30"
Expand Down Expand Up @@ -288,6 +302,7 @@ export default class NrApprovedGrayBox extends Mixins(CommonMixin) {
if (this.showAmalgamateNowButton && !this.isSupportedAmalgamation(this.getNr.entity_type_cd)) return true
if (this.showAlterNowButton && !this.isSupportedAlteration(this.getNr.requestTypeCd)) return true
if (this.showBeginContinuationButton && !this.isSupportedContinuationIn(this.getNr.entity_type_cd)) return true
if (this.showNameChangeButton && !this.isSupportedChangeName(this.getNr.entity_type_cd)) return true
return false
}
Expand Down

0 comments on commit a8beee9

Please sign in to comment.