Skip to content

Commit

Permalink
fix: style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jul 17, 2024
1 parent c30493c commit 955d403
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions src/components/dialogs/DialogLinkReliability.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,26 @@
<v-card-text>
<v-container>
<v-row class="ma-3" justify="start">
<v-col cols="6">
<v-col cols="12">
<v-select
label="Mode"
style="max-width: 325px"
v-model="mode"
:items="modes"
persistent-hint
></v-select>
</v-col>

<v-col cols="6">
<v-text-field
label="Interval"
v-model.number="interval"
suffix="ms"
type="number"
:min="1"
:max="10000"
persistent-hint
></v-text-field>
</v-col>

<v-col cols="6">
<v-radio-group
class="justify-center"
row
v-model="infinite"
>
<v-radio
label="Infinite"
:value="true"
></v-radio>
<v-radio label="" :value="false">
<v-radio label="XX" :value="false">
<template v-slot:label>
<v-text-field
:disabled="infinite"
Expand All @@ -57,6 +45,18 @@
</v-radio>
</v-radio-group>
</v-col>

<v-col cols="6" class="justify-center">
<v-text-field
label="Interval"
v-model.number="interval"
suffix="ms"
type="number"
:min="1"
:max="10000"
persistent-hint
></v-text-field>
</v-col>
</v-row>

<v-row class="mb-2" justify="space-around">
Expand All @@ -77,7 +77,12 @@

<v-divider></v-divider>

<v-row v-if="statistics" class="ma-3" justify="start">
<v-row v-if="statistics" class="ma-3" justify="center">
<v-progress-linear
v-if="running"
indeterminate
color="green darken-1"
></v-progress-linear>
<v-list dense>
<v-list-item>
<v-list-item-content>
Expand Down Expand Up @@ -290,12 +295,15 @@ export default {
[this.activeNode.id],
)
this.running = false
if (response.success) {
this.showSnackbar('Link statistics aborted', 'success')
this.running = false
}
},
async checkLinkReliability() {
this.running = true
const response = await this.app.apiRequest(
`checkLinkReliability`,
[
Expand All @@ -312,9 +320,10 @@ export default {
},
)
this.running = false
if (response.success) {
this.statistics = response.result
this.running = true
} else {
this.showSnackbar(
response.message || 'Health check failed',
Expand Down

0 comments on commit 955d403

Please sign in to comment.