Skip to content

Commit

Permalink
Fix issue in dialog when effect is disabled and dialog is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
DFreds committed May 26, 2023
1 parent ef61aec commit cb553fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/app/effects-panel-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ export default class EffectsPanelController {
},
},
disable: {
icon: '<i class="fas fa-close"></i>',
label: 'Disable',
icon: effect.disabled
? '<i class="fas fa-check"></i>'
: '<i class="fas fa-close"></i>',
label: effect.disabled ? 'Enable' : 'Disable',
callback: async () => {
await effect.update({ disabled: !effect.disabled });
},
Expand Down

0 comments on commit cb553fa

Please sign in to comment.