Skip to content

Conversation

fit2bot
Copy link
Contributor

@fit2bot fit2bot commented Jun 17, 2025

feat: remove oracle endpoint form field oracle_port disabled

@@ -40,9 +40,6 @@ export default {
host: {
disabled: this.$route.params.id === '00000000-0000-0000-0000-000000000001'
},
oracle_port: {
disabled: true
},
is_active: {
disabled: this.$route.params.id === '00000000-0000-0000-0000-000000000001'
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The above snippet contains two main differences:

Firstly, the export default statement should be at the end of a file (it seems to be starting before the start tag).

Secondly, I've noticed a typo with the parameter name "id" being capitalized ($route.params.id) instead of lowerCase (this.$route.params.id). Make sure all variable names follow proper naming conventions.

In terms of optimizing it further,

  1. Use an actual import statement like
import { $host } from '@/services/host';
  1. If needed, use true for disabled properties if there will definitely not be any active value for that property. The current syntax using disabled could lead to unexpected behavior when the route matches no data for that field.
  2. For more clarity, you can wrap elements in quotes around string literals.
  3. Avoid hard-coded values or constant variables for sensitive information which might need validation later on if deployed into production environment.

Also make sure, if possible, use Vue's internal types where applicable and consistent them throughout your project if they exist, these have been improved over last few release cycles, especially regarding how typechecking works. Please ensure code follows best coding practices as per the latest version of Vue CLI.

@fit2bot fit2bot requested a review from a team June 17, 2025 06:19
@Aaron3S Aaron3S merged commit 111957b into dev Jun 17, 2025
3 of 4 checks passed
Copy link

@Aaron3S Aaron3S deleted the pr@dev@feat_remove_port_disabled branch June 17, 2025 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants