@@ -25,6 +30,7 @@
import { Component, Vue, Prop } from 'vue-property-decorator'
import { Getter } from 'vuex-class'
import gaCustomLinks from '@/utils/gaCustomLinks'
+import { LeftValues } from '@/utils/styles'
@Component
export default class EmptyPage extends Vue {
@@ -33,6 +39,7 @@ export default class EmptyPage extends Vue {
@Prop() public clickMethod!:
() => T | void
@Getter('currentLang') private getterLang!: Language
+ @Getter('showConnectionList') private showConnectionList!: boolean
get imageSrc(): string {
return require(`../assets/images/${this.name}`)
@@ -45,11 +52,20 @@ export default class EmptyPage extends Vue {
get emqxWebsite(): string {
return gaCustomLinks(this.getterLang).empty.EMQX
}
+
+ get leftValue(): string {
+ return this.showConnectionList ? LeftValues.Show : LeftValues.Hide
+ }
}
diff --git a/src/components/SubscriptionsList.vue b/src/components/SubscriptionsList.vue
index 6eb3c4cd2..0fcd8cb5d 100644
--- a/src/components/SubscriptionsList.vue
+++ b/src/components/SubscriptionsList.vue
@@ -1,65 +1,60 @@
-
-
+
+
+ {{ $t('connections.newSubscription') }}
+
+
+
-
-
+
+
QoS {{ sub.qos }}
+
+
+
+
+
diff --git a/src/views/connections/ConnectionForm.vue b/src/views/connections/ConnectionForm.vue
index e9f1241cd..f44d5d901 100644
--- a/src/views/connections/ConnectionForm.vue
+++ b/src/views/connections/ConnectionForm.vue
@@ -1,6 +1,16 @@
-