nuxeo-development-framework 6.0.0 → 6.0.1
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/nuxeo-development-framework.umd.js +16 -6
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/notifications/components/notifications-settings/notifications-settings.component.js +10 -6
- package/esm2015/lib/components/notifications/services/notifications.service.js +8 -2
- package/fesm2015/nuxeo-development-framework.js +16 -6
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/notifications/services/notifications.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -41711,6 +41711,11 @@
|
|
|
41711
41711
|
NotificationsService.prototype.unsubscribe = function (id) {
|
|
41712
41712
|
return this._operation(id, 'unsubscribe');
|
|
41713
41713
|
};
|
|
41714
|
+
NotificationsService.prototype.callUnSubscribeForNoSubscription = function (id) {
|
|
41715
|
+
return this._operation(id, 'unSubscripFromSelectByDefultSubscitp', {
|
|
41716
|
+
companyName: "" + this._tenantId
|
|
41717
|
+
});
|
|
41718
|
+
};
|
|
41714
41719
|
NotificationsService.prototype.subscribe = function (id) {
|
|
41715
41720
|
return this._operation(id, 'subscribe', {
|
|
41716
41721
|
companyName: "" + this._tenantId
|
|
@@ -41823,7 +41828,8 @@
|
|
|
41823
41828
|
unsubscribe: 'AC_UA_NotfNotification_Unsubscribe',
|
|
41824
41829
|
subscribe: 'AC_UA_NotfNotification_Subscribe',
|
|
41825
41830
|
reset: 'AC_UA_NotfNotification_ResetSubscription',
|
|
41826
|
-
markAllAsUnread: 'AC_UA_NotfNotification_UnreadAll'
|
|
41831
|
+
markAllAsUnread: 'AC_UA_NotfNotification_UnreadAll',
|
|
41832
|
+
unSubscripFromSelectByDefultSubscitp: 'AC_UA_NotfNotification_UnSubscribe'
|
|
41827
41833
|
};
|
|
41828
41834
|
NotificationsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NotificationsService, deps: [{ token: 'environment' }, { token: NuxeoService }, { token: CallApiService }, { token: i1__namespace$2.HttpClient }, { token: VocabularyApiService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
41829
41835
|
NotificationsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NotificationsService });
|
|
@@ -43078,13 +43084,17 @@
|
|
|
43078
43084
|
var _this = this;
|
|
43079
43085
|
var subscriptions = this._subscriptionsSub.getValue();
|
|
43080
43086
|
var _subscription = this._findSubscription(subscriptions, definition);
|
|
43081
|
-
|
|
43082
|
-
|
|
43087
|
+
var _apiCall;
|
|
43088
|
+
// no subsc and sent by defult then call api
|
|
43089
|
+
if (!_subscription && definition.sentByDefault) {
|
|
43090
|
+
_apiCall = this.notificationsService.callUnSubscribeForNoSubscription(definition.uid);
|
|
43091
|
+
}
|
|
43092
|
+
else {
|
|
43093
|
+
_apiCall = this.notificationsService
|
|
43094
|
+
.unsubscribe(_subscription.uid);
|
|
43083
43095
|
}
|
|
43084
43096
|
this.changingItemId = definition.uid;
|
|
43085
|
-
|
|
43086
|
-
.unsubscribe(_subscription.uid)
|
|
43087
|
-
.pipe(operators.switchMap(function () { return _this.getSubscriptionsByChannel(_this._channel.id).pipe(operators.finalize(function () {
|
|
43097
|
+
_apiCall.pipe(operators.switchMap(function () { return _this.getSubscriptionsByChannel(_this._channel.id).pipe(operators.finalize(function () {
|
|
43088
43098
|
_this.changingItemId = null;
|
|
43089
43099
|
_this._cdr.detectChanges();
|
|
43090
43100
|
})); }), operators.finalize(function () {
|