tnx-shared 5.1.677 → 5.1.678
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/tnx-shared.umd.js +3 -2
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/services/user.service.js +3 -3
- package/fesm2015/tnx-shared.js +2 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/user.service.d.ts +1 -1
- package/services/user.service.d.ts.map +1 -1
|
@@ -12081,9 +12081,10 @@
|
|
|
12081
12081
|
var apiUrl = this.serviceUri + "/GetLowerStaffsByUserId?userId=" + id;
|
|
12082
12082
|
return this.defaultGet(apiUrl);
|
|
12083
12083
|
};
|
|
12084
|
-
UserService.prototype.markAsAdmin = function (userId, isAdmin) {
|
|
12084
|
+
UserService.prototype.markAsAdmin = function (userId, isAdmin, isSuper) {
|
|
12085
12085
|
var _this = this;
|
|
12086
|
-
|
|
12086
|
+
if (isSuper === void 0) { isSuper = true; }
|
|
12087
|
+
var url = this.serviceUri + "/markAsAdmin/" + userId + "/" + isAdmin + "?isSuper=" + isSuper;
|
|
12087
12088
|
return this._http
|
|
12088
12089
|
.put(url, isAdmin)
|
|
12089
12090
|
.pipe(operators.catchError(function (err) { return _this.handleError(err, _this._injector); }))
|