Skip to content

Commit

Permalink
core: frontend: apply eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani authored and patrickelectric committed Dec 12, 2023
1 parent 5266a83 commit bc62e01
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions core/frontend/src/components/autopilot/EndpointManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@
class="d-flex flex-column align-center justify-center ma-0 pa-0"
style="width: 80%;"
>
<v-divider
width="80%"
class="my-4"
/>
<v-card class="align-center justify-center pa-6 d-block">
<v-card-title class="ma-0 pa-0 d-block">
Mavlink Router
</v-card-title>
<v-divider
width="80%"
class="my-4"
/>
<v-card class="align-center justify-center pa-6 d-block">
<v-card-title class="ma-0 pa-0 d-block">
Mavlink Router
</v-card-title>
<v-card-text>
<p>
Select the router to use for distributing MAVLink data.
</p>
<v-radio-group
v-model="selected_router"
row
@change="setCurrentRouter"
>
<v-radio v-for="router in available_routers" :key="router" :label="router" :value="router"></v-radio>
</v-radio-group>
</v-card-text>
</v-card>
<v-divider
width="80%"
class="my-4"
/>
<v-radio-group
v-model="selected_router"
row
@change="setCurrentRouter"
>
<v-radio v-for="router in available_routers" :key="router" :label="router" :value="router" />
</v-radio-group>
</v-card-text>
</v-card>
<v-divider
width="80%"
class="my-4"
/>
<template v-for="(endpoint, index) in available_endpoints">
<v-divider
v-if="index !== 0"
Expand Down Expand Up @@ -164,15 +164,15 @@ export default Vue.extend({
notifier.pushBackError('AUTOPILOT_ROUTERS_FETCH_FAIL', error, true)
})
},
async setCurrentRouter(): Promise<void> {
async setCurrentRouter(): Promise<void> {
this.updating_router = true
await back_axios({
method: 'post',
url: `${autopilot.API_URL}/preferred_router`,
timeout: 10000,
params: {
router: this.selected_router,
}
},
})
.catch((error) => {
notifier.pushBackError('AUTOPILOT_ROUTER_SET_FAIL', error, true)
Expand Down

0 comments on commit bc62e01

Please sign in to comment.