-
Notifications
You must be signed in to change notification settings - Fork 113
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
Fixed: Dashboard Direction #4772
Conversation
@@ -105,7 +110,7 @@ export default { | |||
color: var(--color-text-primary); | |||
cursor: pointer; | |||
|
|||
&:hover { | |||
&.can-direct:hover { | |||
color: var(--color-primary); | |||
} | |||
} |
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.
There are no significant code differences between the two files provided. Please ensure you have run any required async functions properly to avoid unexpected behavior or errors when interacting with the elements in this component.
Here's an example of such a function correctly implemented:
async def func_name(whatever):
...
This should be incorporated into where it was called elsewhere within your codebase so that it performs its intended purpose without causing issues.
@@ -72,7 +73,8 @@ export default { | |||
{ | |||
title: this.$t('Total'), | |||
body: { | |||
route: { name: 'AccountChangeSecretExecutionList' }, | |||
route: { name: 'AccountChangeSecret', query: { tab: 'AccountChangeSecretExecutionList' }}, | |||
canDirect: true, | |||
count: this.data.total_count_change_secret_executions | |||
} | |||
}, |
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.
There are no significant coding differences between these two files. However, to optimize the code further, we should:
- Remove redundant blank lines around titles.
- Optimize query string creation with proper URL encoding.
Here's an example of how you can enhance it (using ES6 syntax):
export default {
title: this.$t("Total"),
body: {
-route: { name: "account-change-secret" },
canDirect: true,
...restOfYourCode...
If there aren't any other changes in terms of logic or data structures, then they appear pretty fine on their own accord without requiring much change; only optimization was suggested here and that is all. If there were specific requirements or constraints given that would need adjustment, please provide those specifics so I could suggest more precise optimizations.
count: this.data.total_count_ongoing_change_secret_assets | ||
} | ||
}, | ||
{ | ||
title: this.$t('Accounts'), | ||
body: { | ||
route: { name: `OperateLogList` }, | ||
count: this.data.total_count_ongoing_change_secret_accounts | ||
} | ||
} |
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.
Here's a list of observed differences and potential improvements:
- The import statement is slightly off due to incorrect indentation (the file extension was omitted when saving the updated version).
- The title keys (
title
) may become part of the query object if there were additional routes added that don't map directly to these titles.
Suggestions/Improvements
- Ensure all titles have consistent formatting across queries with their corresponding route names.
Example: Addname
prop to each title component instead ofroute
. - Inconsistent use of
.map()
on objects without proper key-value pairs makes code less readable. - Consider adding checks or validations within title components such as checking URL parameters, for instance, to ensure they match expected values based on current data.
|
Fixed: Dashboard Direction