fix softkeys

This commit is contained in:
=
2020-07-23 17:51:20 +02:00
parent 578351fbcc
commit 2e646b0547
2 changed files with 12 additions and 1 deletions
@@ -5,6 +5,7 @@ import { dataService } from "@/services/dataService";
import { store, MachineStatusModel } from "@/store";
import { SoftKeysConfigurationModel, machineInfoStore } from "@/store/machineInfo.store";
import { Hub, machineService } from "@/services";
import { Watch } from "vue-property-decorator";
@Component({
components: { softKey }
@@ -58,6 +59,11 @@ export default class Paddle extends Vue {
}
async mounted() {
this.loadData();
}
@Watch("isOpen")
async loadData() {
await dataService.GetSoftKeysConfiguration();
await dataService.GetUserSoftkeyFavorite();
}
+6 -1
View File
@@ -182,6 +182,11 @@ export class Hub {
if (typeof cmsClient != "undefined")
$.connection.hub.qs.CmsClientId = cmsClient.getClientID;
$.connection.hub.stop();
setTimeout(() => {
$.connection.hub.start();
}, 1000);
}
private logout(e) {
@@ -301,7 +306,7 @@ export class Hub {
if (status == "disconnected" && !Hub._serverConnectionNotificationVisible) {
iziToast.warning({
id: "serverConnection", timeout: false, toastOnce: true, theme: "dark", title: "Active-Server Offline", close: false, closeOnEscape: false, drag: false
id: "serverConnection", timeout: false, toastOnce: true, theme: "dark", title: "Active-Server Offline", close: true, closeOnEscape: false, drag: false
} as IziToastSettings);
Hub._serverConnectionNotificationVisible = true;