-
-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: the kanban view supports full-field stacking #953
Conversation
@@ -152,7 +147,7 @@ export const KanbanStack = forwardRef<VirtuosoHandle, IKanbanStackProps>((props, | |||
draggableId={card.id} | |||
index={realIndex} | |||
key={card.id} | |||
isDragDisabled={!cardDraggable} | |||
isDragDisabled={!cardDraggable || isComputed} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the field read-only permission not considered here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cardDraggable
indicates whether it has read-only permissions.
const { id: stackId, data: stackData } = stack; | ||
const { stackEditable, stackDeletable } = permission; | ||
const isSingleSelectField = type === FieldType.SingleSelect; | ||
const isSingleSelectField = type === FieldType.SingleSelect && !isLookup; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isLookup may also be single, isMultipleCellValue should be used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, filtering does not support distinguishing between single and multiple values for lookup fields.
@@ -80,7 +72,9 @@ export const KanbanProvider = ({ children }: { children: ReactNode }) => { | |||
: getBaseCollaboratorList(queryKey[1], queryKey[2] as ListBaseCollaboratorRo).then( | |||
(data) => data.data | |||
), | |||
enabled: Boolean((shareId || baseId) && stackFieldType === FieldType.User), | |||
enabled: Boolean( | |||
(shareId || baseId) && type === FieldType.User && !isMultipleCellValue && !isLookup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
No description provided.