[WEB-2443] fix: role validation and code refactor (#5596)
* chore: delete cycle toast message updated * fix: view page empty state * fix: project settings automation * fix: intake delete action * fix: project label validation * fix: project label validation * fix: project state permission updated * chore: code refactor
This commit is contained in:
parent
5f1939cdeb
commit
441385fc95
13 changed files with 134 additions and 77 deletions
|
|
@ -23,10 +23,20 @@ type Props = {
|
|||
droppedLabelId: string | undefined,
|
||||
dropAtEndOfList: boolean
|
||||
) => void;
|
||||
isEditable?: boolean;
|
||||
};
|
||||
|
||||
export const ProjectSettingLabelItem: React.FC<Props> = (props) => {
|
||||
const { label, setIsUpdating, handleLabelDelete, isChild, isLastChild, isParentDragging = false, onDrop } = props;
|
||||
const {
|
||||
label,
|
||||
setIsUpdating,
|
||||
handleLabelDelete,
|
||||
isChild,
|
||||
isLastChild,
|
||||
isParentDragging = false,
|
||||
onDrop,
|
||||
isEditable = false,
|
||||
} = props;
|
||||
// states
|
||||
const [isEditLabelForm, setEditLabelForm] = useState(false);
|
||||
// router
|
||||
|
|
@ -91,6 +101,7 @@ export const ProjectSettingLabelItem: React.FC<Props> = (props) => {
|
|||
customMenuItems={customMenuItems}
|
||||
handleLabelDelete={handleLabelDelete}
|
||||
dragHandleRef={dragHandleRef}
|
||||
disabled={!isEditable}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue