fix softkeys
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user