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 Nov 29, 2024
1 parent aa3baf2 commit 5ebdaf3
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"

Check warning on line 168 in app/src/components/existing-request/nr-approved-gray-box.vue

View workflow job for this annotation

GitHub Actions / namerequest-ci / verify-build (21, 9)

Expected indentation of 8 spaces but found 10 spaces
class="d-flex justify-center my-1"

Check warning on line 169 in app/src/components/existing-request/nr-approved-gray-box.vue

View workflow job for this annotation

GitHub Actions / namerequest-ci / verify-build (21, 9)

Expected indentation of 8 spaces but found 10 spaces
>

Check warning on line 170 in app/src/components/existing-request/nr-approved-gray-box.vue

View workflow job for this annotation

GitHub Actions / namerequest-ci / verify-build (21, 9)

Expected indentation of 6 spaces but found 8 spaces
<v-btn

Check warning on line 171 in app/src/components/existing-request/nr-approved-gray-box.vue

View workflow job for this annotation

GitHub Actions / namerequest-ci / verify-build (21, 9)

Expected indentation of 8 spaces but found 10 spaces
v-if="showOpenExternalIcon"

Check warning on line 172 in app/src/components/existing-request/nr-approved-gray-box.vue

View workflow job for this annotation

GitHub Actions / namerequest-ci / verify-build (21, 9)

Expected indentation of 10 spaces but found 12 spaces
class="change-name-now-external-btn mt-30"

Check warning on line 173 in app/src/components/existing-request/nr-approved-gray-box.vue

View workflow job for this annotation

GitHub Actions / namerequest-ci / verify-build (21, 9)

Expected indentation of 10 spaces but found 12 spaces
min-width="20rem"

Check warning on line 174 in app/src/components/existing-request/nr-approved-gray-box.vue

View workflow job for this annotation

GitHub Actions / namerequest-ci / verify-build (21, 9)

Expected indentation of 10 spaces but found 12 spaces
:disabled="disabled"

Check warning on line 175 in app/src/components/existing-request/nr-approved-gray-box.vue

View workflow job for this annotation

GitHub Actions / namerequest-ci / verify-build (21, 9)

Expected indentation of 10 spaces but found 12 spaces
@click="$emit('goToCorpOnline')"

Check warning on line 176 in app/src/components/existing-request/nr-approved-gray-box.vue

View workflow job for this annotation

GitHub Actions / namerequest-ci / verify-build (21, 9)

Expected indentation of 10 spaces but found 12 spaces
>
<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 5ebdaf3

Please sign in to comment.