mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
[WEB-2258] fix: bugs (#895)
* fix: memeber picker z-index issue. * fix: features list toggle always disabled for non-pro users.
This commit is contained in:
@@ -88,7 +88,7 @@ export const MemberOptions = observer((props: Props) => {
|
||||
return createPortal(
|
||||
<Combobox.Options data-prevent-outside-click static>
|
||||
<div
|
||||
className="my-1 w-48 rounded border-[0.5px] border-custom-border-300 bg-custom-background-100 px-2 py-2.5 text-xs shadow-custom-shadow-rg focus:outline-none z-[19]"
|
||||
className="my-1 w-48 rounded border-[0.5px] border-custom-border-300 bg-custom-background-100 px-2 py-2.5 text-xs shadow-custom-shadow-rg focus:outline-none z-20"
|
||||
ref={setPopperElement}
|
||||
style={{
|
||||
...styles.popper,
|
||||
|
||||
@@ -98,7 +98,10 @@ export const ProjectFeaturesList: FC<Props> = observer((props) => {
|
||||
</div>
|
||||
|
||||
<ToggleSwitch
|
||||
value={Boolean(isWorklogEnabled && currentProjectDetails?.[featureItem.property as keyof IProject])}
|
||||
value={Boolean(
|
||||
currentProjectDetails?.[featureItem.property as keyof IProject] &&
|
||||
(featureItem.property === "is_time_tracking_enabled" ? isWorklogEnabled : true)
|
||||
)}
|
||||
onChange={() => handleSubmit(featureItemKey, featureItem.property)}
|
||||
disabled={
|
||||
!featureItem.isEnabled || !isAdmin || featureItem.property === "is_time_tracking_enabled"
|
||||
|
||||
Reference in New Issue
Block a user