🐛 Fixed connect icon
This commit is contained in:
@@ -225,9 +225,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button class="icon" @click="toggleCollapse()">
|
<button class="icon" @click="toggleCollapse()">
|
||||||
<i class="material-icons">{{
|
<i class="material-icons">
|
||||||
!showMore ? "first_page" : "last_page"
|
{{ !showMore ? "first_page" : "last_page" }}
|
||||||
}}</i>
|
</i>
|
||||||
<span>{{ !showMore ? "Show more" : "Hide more" }}</span>
|
<span>{{ !showMore ? "Show more" : "Hide more" }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -272,6 +272,7 @@
|
|||||||
.fade-leave-active {
|
.fade-leave-active {
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-enter,
|
.fade-enter,
|
||||||
.fade-leave-to {
|
.fade-leave-to {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|||||||
@@ -25,10 +25,10 @@
|
|||||||
name="connect"
|
name="connect"
|
||||||
@click="toggleConnection"
|
@click="toggleConnection"
|
||||||
>
|
>
|
||||||
{{ toggleConnectionVerb }}
|
{{ !connectionState ? "Connect" : "Disconnect" }}
|
||||||
<span>
|
<span>
|
||||||
<i class="material-icons">
|
<i class="material-icons">
|
||||||
{{ connectionState ? "sync" : "sync_disabled" }}
|
{{ !connectionState ? "sync" : "sync_disabled" }}
|
||||||
</i>
|
</i>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
name="start"
|
name="start"
|
||||||
@click="toggleSSEConnection"
|
@click="toggleSSEConnection"
|
||||||
>
|
>
|
||||||
{{ toggleSSEConnectionVerb }}
|
{{ !connectionSSEState ? "Start" : "Stop" }}
|
||||||
<span>
|
<span>
|
||||||
<i class="material-icons">
|
<i class="material-icons">
|
||||||
{{ !connectionSSEState ? "sync" : "sync_disabled" }}
|
{{ !connectionSSEState ? "sync" : "sync_disabled" }}
|
||||||
@@ -205,9 +205,6 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
toggleConnectionVerb() {
|
|
||||||
return !this.connectionState ? "Connect" : "Disconnect";
|
|
||||||
},
|
|
||||||
urlValid() {
|
urlValid() {
|
||||||
const pattern = new RegExp(
|
const pattern = new RegExp(
|
||||||
"^(wss?:\\/\\/)?" +
|
"^(wss?:\\/\\/)?" +
|
||||||
@@ -220,9 +217,6 @@ export default {
|
|||||||
);
|
);
|
||||||
return pattern.test(this.url);
|
return pattern.test(this.url);
|
||||||
},
|
},
|
||||||
toggleSSEConnectionVerb() {
|
|
||||||
return !this.connectionSSEState ? "Start" : "Stop";
|
|
||||||
},
|
|
||||||
serverValid() {
|
serverValid() {
|
||||||
const pattern = new RegExp(
|
const pattern = new RegExp(
|
||||||
"^(http(s)?:\\/\\/)?" +
|
"^(http(s)?:\\/\\/)?" +
|
||||||
|
|||||||
Reference in New Issue
Block a user