-
Notifications
You must be signed in to change notification settings - Fork 248
[Remove Vuetify from Studio] Delete, restore, and visibility confirmation dialogs in admin channel actions #5416
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
Conversation
|
Hi @MisRob, I've updated the ChannelActionsDropdown.spec.js tests (Locally) after migrating to KModal as i saw the tests failing. Changes: Let me know if you have any feedback and then i will update the Pr. |
|
Thank you @Prashant-thakur77, we will assign a reviewer next week. |
|
@MisRob I would appreciate your guidance on how to set the themeToken.text color for the title in the KModel component. I was able to apply it successfully to the content since it was within a tag, but I’m a bit unsure about how to correctly apply it to the title text. |
If you're referring to it's best to not override |
|
So you can just remove the above part from the code :) Generally tokens can be only applied via computed style or class as described here. But again, here I think you won't need it. |
|
@MisRob The issue I’m facing is that when the Delete Channel action is triggered, the text across the entire table turns red. Since the modal is a child of this parent component, the text within the KModal — both the title and content — also inherits the red color when the modal is restored or when Permanently Delete is clicked. I’ve managed to fix the content color issue by applying inline styles directly to the div, but I’m uncertain about the correct way to set the title text color. Additionally, since the table components are center-aligned by default, applying a left alignment to the modal text and title seems important — otherwise, both elements appear centered within the modal. |
|
That's helpful @Prashant-thakur77, thank you. It'd be best to fix this right in |
|
Sure @MisRob i would love to do it. |
|
Thank you @Prashant-thakur77. So the first step would be to try if this suggestion helps with this Studio use-case. This is development documentation for KDS. Note that information on linking is obsolete in the dev docs. You can link your local KDS to local Studio with running these commands in Studio: |
|
@MisRob |
|
@MisRob I Have resolved the issue and verified the updates in studio and it works fine now.So do i need to create a issue first for this in kds ? |
|
@Prashant-thakur77 Thank you and I'm glad all went well. As for me, you don't need to create a KDS issue. It'd be fine to just open a KDS PR, cross-reference with this PR, and mention @AllanOXDi there who will be reviewing both of them. |
AllanOXDi
left a comment
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.
Hi @Prashant-thakur77 ! Nice work! the use of KModal is solid here . 👏 I just left a few question for you :)
...ntcuration/contentcuration/frontend/administration/pages/Channels/ChannelActionsDropdown.vue
Outdated
Show resolved
Hide resolved
...ntcuration/contentcuration/frontend/administration/pages/Channels/ChannelActionsDropdown.vue
Outdated
Show resolved
Hide resolved
|
Hi @AllanOXDi This is going to be corrected after we do the kds update mentioned by @MisRob .this is because i have removed the styling from the file where the 5 modal were as the kmodal should not need that once the pr made in kds is merged and we update the studio after that ,when the kds update is done this should work fine. |
|
Hi @AllanOXDi @Prashant-thakur77 - I hope that the new KDS release what will unblock us here will be this week. Will follow-up with you. Thanks. |
|
Hi @Prashant-thakur77, we've just installed to Studio's |
ef333b9 to
d0e5c68
Compare
|
@AllanOXDi @MisRob i have Rebased the pr to the latest and checked the working locally.Do tell if any changes are needed :) |
d0e5c68 to
97c8260
Compare
...ntcuration/contentcuration/frontend/administration/pages/Channels/ChannelActionsDropdown.vue
Show resolved
Hide resolved
AllanOXDi
left a comment
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.
LGTM! Thanks @Prashant-thakur77 , @MisRob will merge it
MisRob
left a comment
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.
Nice work here @Prashant-thakur77 and @AllanOXDi.
I think we just need to improve the testing approach, then I will merge.
...ntcuration/contentcuration/frontend/administration/pages/Channels/ChannelActionsDropdown.vue
Outdated
Show resolved
Hide resolved
...tentcuration/frontend/administration/pages/Channels/__tests__/channelActionsDropdown.spec.js
Show resolved
Hide resolved
...tentcuration/frontend/administration/pages/Channels/__tests__/channelActionsDropdown.spec.js
Outdated
Show resolved
Hide resolved
a58a209 to
cd8bf31
Compare
|
Thanks @Prashant-thakur77. As for me, we're ready for merge, but let's wait for last confirmation from @AllanOXDi. |
|
Thanks @Prashant-thakur77 and @MisRob looks good to me |




Fixes #5410
Summary
Migrated 5 channel action confirmation dialogs from Vuetify to KDS KModal
Changed title of the soft delete button from"Permanently delete channel" to "delete channel" for proper distinction (after confirming from misrob)
After images for Desktop users:
After images for Mobile users:
References
• Parent issue: #5060
Reviewer guidance
Login as [email protected] with password a
Go to Administration > Channels
Click Actions dropdown in the last column of the table
Click Make public / Make private / Delete channel / Restore / Delete pernamently (note that availability of these options depends on channel type).