@arsedizioni/ars-utils 21.2.144 → 21.2.145
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.
|
@@ -168,6 +168,7 @@ class ClipperDocumentManager {
|
|
|
168
168
|
this.dialogService = inject(ApplicationDialogService);
|
|
169
169
|
this.canUseArchive = signal(false, ...(ngDevMode ? [{ debugName: "canUseArchive" }] : /* istanbul ignore next */ []));
|
|
170
170
|
this.canHandleTooManyResults = signal(false, ...(ngDevMode ? [{ debugName: "canHandleTooManyResults" }] : /* istanbul ignore next */ []));
|
|
171
|
+
this.canPopulateContacts = signal(false, ...(ngDevMode ? [{ debugName: "canPopulateContacts" }] : /* istanbul ignore next */ []));
|
|
171
172
|
}
|
|
172
173
|
/**
|
|
173
174
|
* Export a document in pdf format
|
|
@@ -344,14 +345,14 @@ class ClipperDocumentManager {
|
|
|
344
345
|
data: {
|
|
345
346
|
info: 'Puoi inviare i documenti a chi vuoi ma, per poterli visualizzare, è necessario essere un utente abbonato.',
|
|
346
347
|
count: items.length,
|
|
347
|
-
canPopulate:
|
|
348
|
+
canPopulate: this.canPopulateContacts(),
|
|
348
349
|
},
|
|
349
350
|
minWidth: '375px',
|
|
350
351
|
maxWidth: '600px',
|
|
351
352
|
width: '100%',
|
|
352
353
|
});
|
|
353
354
|
d.componentInstance.done
|
|
354
|
-
.subscribe(
|
|
355
|
+
.subscribe(data => {
|
|
355
356
|
const params = {
|
|
356
357
|
recipients: data.recipients,
|
|
357
358
|
subject: data.subject,
|
|
@@ -371,7 +372,7 @@ class ClipperDocumentManager {
|
|
|
371
372
|
});
|
|
372
373
|
});
|
|
373
374
|
d.componentInstance.populate
|
|
374
|
-
.subscribe(
|
|
375
|
+
.subscribe(data => {
|
|
375
376
|
this.populateContacts.emit(data);
|
|
376
377
|
});
|
|
377
378
|
}
|
|
@@ -2997,6 +2998,8 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
2997
2998
|
this.user = this.clipperService.loginInfo?.context;
|
|
2998
2999
|
}
|
|
2999
3000
|
ngOnInit() {
|
|
3001
|
+
// Disable features based on user context
|
|
3002
|
+
this.canPopulateContacts.set(false);
|
|
3000
3003
|
// Initialize filter
|
|
3001
3004
|
this.filterParams.version = 7;
|
|
3002
3005
|
this.filterParams.modules = [{ name: "Normativa vigente", shortName: "Normativa vigente", value: ClipperModule.NormativaVigente }];
|