Skip to content

Commit

Permalink
fix: [FE][FC-122306]: Fixes dependent field editable permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanna-vijayan committed Mar 19, 2024
1 parent cb39d5a commit 6684563
Showing 1 changed file with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,21 +456,23 @@ export class FbFieldDropdown {
{i18nText('addChoice')}
</fw-button>
)}
{this.enableBulkChoices && (this.parentId || this.level === 1) && (
<fw-button
id='addNewChoiceBtn'
color='link'
disabled={this.boolExceededChoiceLimit}
onFwClick={this.openBulkChoiceModal}
>
<fw-icon
name='circle-plus'
size='16'
slot='before-label'
></fw-icon>
{i18nText('addBulkChoice')}
</fw-button>
)}
{!this.disabled &&
this.enableBulkChoices &&
(this.parentId || this.level === 1) && (
<fw-button
id='addNewChoiceBtn'
color='link'
disabled={this.boolExceededChoiceLimit}
onFwClick={this.openBulkChoiceModal}
>
<fw-icon
name='circle-plus'
size='16'
slot='before-label'
></fw-icon>
{i18nText('addBulkChoice')}
</fw-button>
)}
{this.boolExceededChoiceLimit && (
<label class={`${strBaseClassName}-warning-text`}>
{strExceedLimitChoicesWarning}
Expand Down

0 comments on commit 6684563

Please sign in to comment.