5959/******/
6060/******/
6161/******/ var hotApplyOnUpdate = true;
62- /******/ var hotCurrentHash = "17d5ff35f9585df8e737 "; // eslint-disable-line no-unused-vars
62+ /******/ var hotCurrentHash = "dbb48a9e34eaaec2540a "; // eslint-disable-line no-unused-vars
6363/******/ var hotCurrentModuleData = {};
6464/******/ var hotCurrentChildModule; // eslint-disable-line no-unused-vars
6565/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
@@ -38776,9 +38776,9 @@ __WEBPACK_IMPORTED_MODULE_4__services_AppRoot__["a" /* AppRoot */].Instance.load
3877638776 hooks.mounted(ourVue);
3877738777 }
3877838778 });
38779- ourVue.$router.beforeEach(function (to, from, next) {
38780- next();
38781- });
38779+ // ourVue.$router.beforeEach((to, from, next) => {
38780+ // next();
38781+ // });
3878238782 ourVue.$router.afterEach(function (to, from) {
3878338783 hooks.afterRoute(to.path, from.path);
3878438784 });
@@ -40816,6 +40816,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4081640816 else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4081740817 return c > 3 && r && Object.defineProperty(target, key, r), r;
4081840818};
40819+ var __metadata = (this && this.__metadata) || function (k, v) {
40820+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
40821+ };
4081940822
4082040823
4082140824
@@ -40854,13 +40857,25 @@ var ConfigureClientComponent = /** @class */ (function (_super) {
4085440857 };
4085540858 ConfigureClientComponent.prototype.mounted = function () {
4085640859 var _this = this;
40857- this.applicationId = parseInt(this.$route.params.applicationId, 10);
4085840860 __WEBPACK_IMPORTED_MODULE_2__services_AppRoot__["a" /* AppRoot */].Instance.applicationService.get(this.applicationId)
4085940861 .then(function (app) {
4086040862 _this.sharedSecret = app.sharedSecret;
4086140863 _this.appKey = app.appKey;
4086240864 });
4086340865 };
40866+ ConfigureClientComponent.prototype.onApplicationChanged = function (value, oldValue) {
40867+ var _this = this;
40868+ if (!value) {
40869+ return;
40870+ }
40871+ this.applicationId = parseInt(value);
40872+ __WEBPACK_IMPORTED_MODULE_2__services_AppRoot__["a" /* AppRoot */].Instance.applicationService.get(this.applicationId)
40873+ .then(function (app) {
40874+ _this.sharedSecret = app.sharedSecret;
40875+ _this.appKey = app.appKey;
40876+ _this.select(_this.lastLib);
40877+ });
40878+ };
4086440879 ConfigureClientComponent.prototype.goToSupport = function () {
4086540880 this.$router.push({
4086640881 name: "support",
@@ -40869,16 +40884,13 @@ var ConfigureClientComponent = /** @class */ (function (_super) {
4086940884 };
4087040885 ConfigureClientComponent.prototype.select = function (libName) {
4087140886 var _this = this;
40872- var appInfo = __WEBPACK_IMPORTED_MODULE_2__services_AppRoot__["a" /* AppRoot */].Instance.currentUser.applications[0];
40873- __WEBPACK_IMPORTED_MODULE_2__services_AppRoot__["a" /* AppRoot */].Instance.applicationService.get(appInfo.id)
40874- .then(function (app) {
40875- var client = new __WEBPACK_IMPORTED_MODULE_1__services_HttpClient__["a" /* HttpClient */]();
40876- client.get(__WEBPACK_IMPORTED_MODULE_0__services_ApiClient__["a" /* ApiClient */].ApiUrl + 'onboarding/library/' + libName + "/?appKey=" + app.appKey)
40877- .then(function (response) {
40878- _this.instruction = response.body
40879- .replace('yourAppKey', _this.appKey)
40880- .replace('yourSharedSecret', _this.sharedSecret);
40881- });
40887+ this.lastLib = libName;
40888+ var client = new __WEBPACK_IMPORTED_MODULE_1__services_HttpClient__["a" /* HttpClient */]();
40889+ client.get(__WEBPACK_IMPORTED_MODULE_0__services_ApiClient__["a" /* ApiClient */].ApiUrl + 'onboarding/library/' + libName + "/?appKey=" + this.appKey)
40890+ .then(function (response) {
40891+ _this.instruction = response.body
40892+ .replace('yourAppKey', _this.appKey)
40893+ .replace('yourSharedSecret', _this.sharedSecret);
4088240894 });
4088340895 var buttons = document.querySelectorAll('.buttons button');
4088440896 for (var i = 0; i < buttons.length; i++) {
@@ -40896,6 +40908,7 @@ var ConfigureClientComponent = /** @class */ (function (_super) {
4089640908 var q = new __WEBPACK_IMPORTED_MODULE_3__dto_Core_Incidents__["a" /* FindIncidents */]();
4089740909 q.PageNumber = 1;
4089840910 q.ItemsPerPage = 1;
40911+ q.ApplicationIds = [this.applicationId];
4089940912 __WEBPACK_IMPORTED_MODULE_2__services_AppRoot__["a" /* AppRoot */].Instance.apiClient.query(q)
4090040913 .then(function (result) {
4090140914 if (result.TotalCount === 0) {
@@ -40908,6 +40921,12 @@ var ConfigureClientComponent = /** @class */ (function (_super) {
4090840921 });
4090940922 });
4091040923 };
40924+ __decorate([
40925+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5_vue_property_decorator__["Watch"])('$route.params.applicationId'),
40926+ __metadata("design:type", Function),
40927+ __metadata("design:paramtypes", [String, String]),
40928+ __metadata("design:returntype", void 0)
40929+ ], ConfigureClientComponent.prototype, "onApplicationChanged", null);
4091140930 ConfigureClientComponent = __decorate([
4091240931 __WEBPACK_IMPORTED_MODULE_5_vue_property_decorator__["Component"]
4091340932 ], ConfigureClientComponent);
@@ -63477,7 +63496,8 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
6347763496 }, [_c('router-link', {
6347863497 staticClass: "nav-link",
6347963498 attrs: {
63480- "to": _vm.discoverLink
63499+ "to": _vm.discoverLink,
63500+ "id": "DiscoverMenu"
6348163501 }
6348263502 }, [_c('span', {
6348363503 staticClass: "fa fa-binoculars"
0 commit comments