Skip to content

Commit

Permalink
Merge pull request #912 from freshworks/FC-122306
Browse files Browse the repository at this point in the history
fix: [FE][FC-122306]: Fixes dependent field editable permission issues
  • Loading branch information
prasanna-vijayan committed Apr 3, 2024
2 parents cb39d5a + 6684563 commit 3d5df95
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 3d5df95

Please sign in to comment.