File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
assets/src/dashboard/parts/connected/settings Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -93,13 +93,19 @@ const Menu = ({
93
93
< div className = "basis-1/5" >
94
94
< ul className = "grid m-0 gap-1" >
95
95
{ menuItems . map ( item => {
96
+ const disabled = 'enabled' !== settings ?. image_replacer && 'general' !== item . value ;
96
97
const isActive = tab === item . value || ( item . children && item . children . some ( child => child . value === tab ) ) ;
97
98
98
99
99
- const buttonClasses = classnames ( { '!text-info' : isActive } , 'w-full bg-transparent border-0 flex items-center appearance-none not-italic font-semibold text-base text-purple-gray cursor-pointer hover:text-info py-2' ) ;
100
+ const buttonClasses = classnames (
101
+ { '!text-info' : isActive } ,
102
+ { 'opacity-50 pointer-events-none' : disabled } ,
103
+ 'w-full bg-transparent border-0 flex items-center appearance-none not-italic font-semibold text-base text-purple-gray cursor-pointer hover:text-info py-2'
104
+ ) ;
100
105
return (
101
106
< li key = { item . value } className = 'm-0' >
102
107
< button
108
+ disabled = { disabled }
103
109
className = { buttonClasses }
104
110
onClick = { ( ) => setTab ( item . value ) }
105
111
>
You can’t perform that action at this time.
0 commit comments