59
59
/******/
60
60
/******/
61
61
/******/ var hotApplyOnUpdate = true;
62
- /******/ var hotCurrentHash = "17d5ff35f9585df8e737 "; // eslint-disable-line no-unused-vars
62
+ /******/ var hotCurrentHash = "dbb48a9e34eaaec2540a "; // eslint-disable-line no-unused-vars
63
63
/******/ var hotCurrentModuleData = {};
64
64
/******/ var hotCurrentChildModule; // eslint-disable-line no-unused-vars
65
65
/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
@@ -38776,9 +38776,9 @@ __WEBPACK_IMPORTED_MODULE_4__services_AppRoot__["a" /* AppRoot */].Instance.load
38776
38776
hooks.mounted(ourVue);
38777
38777
}
38778
38778
});
38779
- ourVue.$router.beforeEach(function (to, from, next) {
38780
- next();
38781
- });
38779
+ // ourVue.$router.beforeEach((to, from, next) => {
38780
+ // next();
38781
+ // });
38782
38782
ourVue.$router.afterEach(function (to, from) {
38783
38783
hooks.afterRoute(to.path, from.path);
38784
38784
});
@@ -40816,6 +40816,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
40816
40816
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;
40817
40817
return c > 3 && r && Object.defineProperty(target, key, r), r;
40818
40818
};
40819
+ var __metadata = (this && this.__metadata) || function (k, v) {
40820
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
40821
+ };
40819
40822
40820
40823
40821
40824
@@ -40854,13 +40857,25 @@ var ConfigureClientComponent = /** @class */ (function (_super) {
40854
40857
};
40855
40858
ConfigureClientComponent.prototype.mounted = function () {
40856
40859
var _this = this;
40857
- this.applicationId = parseInt(this.$route.params.applicationId, 10);
40858
40860
__WEBPACK_IMPORTED_MODULE_2__services_AppRoot__["a" /* AppRoot */].Instance.applicationService.get(this.applicationId)
40859
40861
.then(function (app) {
40860
40862
_this.sharedSecret = app.sharedSecret;
40861
40863
_this.appKey = app.appKey;
40862
40864
});
40863
40865
};
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
+ };
40864
40879
ConfigureClientComponent.prototype.goToSupport = function () {
40865
40880
this.$router.push({
40866
40881
name: "support",
@@ -40869,16 +40884,13 @@ var ConfigureClientComponent = /** @class */ (function (_super) {
40869
40884
};
40870
40885
ConfigureClientComponent.prototype.select = function (libName) {
40871
40886
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);
40882
40894
});
40883
40895
var buttons = document.querySelectorAll('.buttons button');
40884
40896
for (var i = 0; i < buttons.length; i++) {
@@ -40896,6 +40908,7 @@ var ConfigureClientComponent = /** @class */ (function (_super) {
40896
40908
var q = new __WEBPACK_IMPORTED_MODULE_3__dto_Core_Incidents__["a" /* FindIncidents */]();
40897
40909
q.PageNumber = 1;
40898
40910
q.ItemsPerPage = 1;
40911
+ q.ApplicationIds = [this.applicationId];
40899
40912
__WEBPACK_IMPORTED_MODULE_2__services_AppRoot__["a" /* AppRoot */].Instance.apiClient.query(q)
40900
40913
.then(function (result) {
40901
40914
if (result.TotalCount === 0) {
@@ -40908,6 +40921,12 @@ var ConfigureClientComponent = /** @class */ (function (_super) {
40908
40921
});
40909
40922
});
40910
40923
};
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);
40911
40930
ConfigureClientComponent = __decorate([
40912
40931
__WEBPACK_IMPORTED_MODULE_5_vue_property_decorator__["Component"]
40913
40932
], ConfigureClientComponent);
@@ -63477,7 +63496,8 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
63477
63496
}, [_c('router-link', {
63478
63497
staticClass: "nav-link",
63479
63498
attrs: {
63480
- "to": _vm.discoverLink
63499
+ "to": _vm.discoverLink,
63500
+ "id": "DiscoverMenu"
63481
63501
}
63482
63502
}, [_c('span', {
63483
63503
staticClass: "fa fa-binoculars"
0 commit comments