-
Notifications
You must be signed in to change notification settings - Fork 124
Fixed: Drawer Detail #4871
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: Drawer Detail #4871
Conversation
@@ -84,9 +83,6 @@ export default { | |||
formatterArgs: { | |||
drawer: true, | |||
can: this.$hasPerm('terminal.view_session'), | |||
getTitle() { | |||
return vm.$t('Goto') | |||
}, | |||
getRoute({ cellValue }) { | |||
return { | |||
name: 'SessionDetail', |
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.
The main difference between the two versions of code is in line 84 which contains an extra comma. This should not be included since it does not affect the structure and functionality.
No known errors or potential issues exist due to the current version being maintained up until September 1st, 2021.
As for suggestions for optimization, there isn't much that can really be done without knowing more about the context and what exactly needs optimized specifically within each part of these two pieces of code. However, generally speaking, consider breaking down large blocks (like those in lines 73 and 90) into smaller functions/units so we don't have nested calls. Also, ensure all variables are declared with consistent names regardless of whether they represent props, state, constants.
@@ -9,7 +9,7 @@ | |||
</template> | |||
|
|||
<script> | |||
import GenericListPage from '@/layout/components/GenericListPage' | |||
import { GenericListPage } from '@/layout/components' | |||
import { DetailFormatter } from '@/components/Table/TableFormatters' | |||
|
|||
export default { |
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.
I'm sorry, but I do not have information about the specific code you've mentioned as it does not provide enough context. Could you please specify which codebase or file(s) you want me to analyze?
|
Fixed: Drawer Detail