-
Notifications
You must be signed in to change notification settings - Fork 1.2k
UI: Fix duplicate quickview (for provider column) in backup repository #11849
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
base: main
Are you sure you want to change the base?
Conversation
@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11849 +/- ##
=========================================
Coverage 17.56% 17.56%
Complexity 15533 15533
=========================================
Files 5909 5909
Lines 529013 529013
Branches 64605 64605
=========================================
+ Hits 92911 92913 +2
+ Misses 425655 425652 -3
- Partials 10447 10448 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
UI build: ✔️ |
@DaanHoogland that will enable quick view only in oauthsetting, for provider column. all other views have name column and route is not oauthsetting. name column is the usual quick view column, only exception is provider column (used in oauthsetting for quick view) |
235d726
to
8e0dc34
Compare
Thanks @sureshanaparti , I had found my erroneous way of thinking and deleted my 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.
:actions="actions" | ||
:resource="record" | ||
:enabled="quickViewEnabled() && actions.length > 0 && columns && ['name', 'provider'].includes(columns[0].dataIndex)" | ||
:enabled="quickViewEnabled() && actions.length > 0 && columns && (columns[0].dataIndex === 'name' || (columns[0].dataIndex === 'provider' && ['oauthsetting'].includes($route.path.split('/')[1])))" |
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.
:enabled="quickViewEnabled() && actions.length > 0 && columns && (columns[0].dataIndex === 'name' || (columns[0].dataIndex === 'provider' && ['oauthsetting'].includes($route.path.split('/')[1])))" | |
:enabled="quickViewEnabled() && actions.length > 0 && column.key === columns[0].dataIndex" |
</template> | ||
<template #bodyCell="{ column, text, record }"> | ||
<template v-if="['name', 'provider'].includes(column.key) "> | ||
<template v-if="column.key === 'name' || (column.key === 'provider' && ['oauthsetting'].includes($route.path.split('/')[1]))"> |
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.
<template v-if="column.key === 'name' || (column.key === 'provider' && ['oauthsetting'].includes($route.path.split('/')[1]))"> | |
<template v-if="['name', 'provider'].includes(column.key) "> |
8e0dc34
to
d0a5207
Compare
Description
This PR fixes duplicate quickview (for provider column) in backup repository.
Quickview for provider column is enabled for OAuth providers only, here: https://github.com/apache/cloudstack/pull/7996/files#diff-fa50e9f30df1f49ab46e9e30d15009ff36b166ce26cb289a8ec75a4f60873d2b
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Verified quick view for Backup Repository and OAuth Configuration sections in UI.
Backup Repository UI, Before Fix:
Backup Repository UI, After Fix:
OAuth Configuration UI, No change:
How did you try to break this feature and the system with this change?