Skip to content
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

Allow reordering forum topics #5548

Open
RussellDash332 opened this issue Dec 30, 2022 · 2 comments
Open

Allow reordering forum topics #5548

RussellDash332 opened this issue Dec 30, 2022 · 2 comments

Comments

@RussellDash332
Copy link

Upon duplicating a course, the order of the forum topics might be shuffled, however one cannot simply reorder it by dragging and instead has to do delete/add/edit.

Left: duplicated course
Right: original course

image

@leslieyip02
Copy link

Hi, I'm interested in contributing to this issue, so I took a look at the code and found that the forum display uses ForumTopicTable, which uses the MUIDataTable component:

<ForumTopicTable forum={forum} forumTopics={forumTopics} />

<MUIDataTable
{...props}
columns={processColumns(props.includeRowNumber, props.columns)}
elevation={1}
options={{ ...options, ...(props.options ?? {}) }}
/>

Unfortunately, MUIDataTable only supports draggableColumns, and not draggable rows. It doesn't look like there's a way to implement dragging of the topics to shuffle without rewriting this component.

Any advice?

@bivanalhar bivanalhar self-assigned this Feb 10, 2023
@bivanalhar
Copy link
Contributor

bivanalhar commented Feb 16, 2023

Hi @leslieyip02 thanks a lot for your interest in this issue.
Actually, we are currently working on resolving this issue. Should you be interested, you might also look into this issue #4972. This is also interesting issue and we think you might take a look at this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants