Skip to content

Commit

Permalink
patched visible arg
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Aug 19, 2024
1 parent 6670ac2 commit 7168625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/components/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class ButtonComponent extends Component {
constructor(owner, { permission = null, disabled = false, visible = true }) {
super(...arguments);
this.permissionRequired = permission;
this.visible = true;
this.visible = visible;
if (!disabled) {
this.disabledByPermission = permission && this.abilities.cannot(permission);
}
Expand Down
2 changes: 1 addition & 1 deletion addon/components/dropdown-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class DropdownButtonComponent extends Component {
this.buttonComponentArgs = buttonComponentArgs;
this.permissionRequired = permission;
this.disabled = disabled;
this.visible = true;
this.visible = visible;
// If no permissions disable
if (!disabled) {
this.disabled = this.doesntHavePermissions = permission && this.abilities.cannot(permission);
Expand Down

0 comments on commit 7168625

Please sign in to comment.