-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Added Table Permission Modal in Table Card Menu #4082
base: develop
Are you sure you want to change the base?
Conversation
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.
This kind of works, but is not clean enough for me to feel comfortable merging. Here's what needs to happen:
-
In
TablePermissions.svelte
- Rip out
Button
andButtonMenuItem
. - Do not instantiate a
ModalController
asconst controller
. Instead, useexport let controller: ModalController
to accept a modal controller as a prop. - Rename the component to
TablePermissionsModal
, to make it clearer that it is only a modal — nothing else.
- Rip out
-
In
TableMode.svelte
:- Instantiate a modal controller called
permissionModal
. - Change
<TablePermissions {table}/>
to be the button which activates the modal. On click, the button should use the controller to activate the modal. - At the end of the component (not inside any other
<div>
), put<TablePermissionsModal>
and pass the controller to it.
- Instantiate a modal controller called
-
Do a similar thing in
TableCard.svelte
:- Instantiate a modal controller so that the modal state lives inside the table card, not the dropdown menu.
- Follow steps similar to above.
- In the dropdown menu, use a
ButtonMenuItem
. - Set
closeOnInnerClick
back totrue
.
Oh also, @vishaljoshi789, for future PRs, please don't put |
Alright @seancolsen I will follow this from next PRs. For this issue do I have to create a new branch or can I continue working on the same branch. |
You can continue on the same branch. |
@seancolsen can you please guide me how can I pass these checks. |
|
Thanks for the help all checks have been passed. |
Thanks I'll re-review this soon. Might not be today though. |
Fixes #4070
Added Table Permission Modal in Table Card Menu
Technical details
Used fromTableCard prop to make the design even according to the TableCard Menu design.
Screenshots
Checklist
Update index.md
).develop
branch of the repositoryvisible errors.
Developer Certificate of Origin
Developer Certificate of Origin