@epistola.app/valtimo-plugin 0.9.3 → 0.9.4
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.
|
@@ -3988,6 +3988,18 @@ function registerEpistolaOverrideBuilderComponent(injector) {
|
|
|
3988
3988
|
Formio.Components.setComponent(EPISTOLA_OVERRIDE_BUILDER_OPTIONS.type, OverrideBuilderWithFields);
|
|
3989
3989
|
}
|
|
3990
3990
|
|
|
3991
|
+
/**
|
|
3992
|
+
* The plugin action definition key the backend serializes for generate-document
|
|
3993
|
+
* process links. It carries the `epistola-` prefix — see `EPISTOLA_ACTION_KEYS`
|
|
3994
|
+
* in `EpistolaAdminService` on the backend. The selector must match this exact
|
|
3995
|
+
* value; the un-prefixed `generate-document` never appears in the API response.
|
|
3996
|
+
*/
|
|
3997
|
+
const GENERATE_DOCUMENT_ACTION_KEY = 'epistola-generate-document';
|
|
3998
|
+
/** Keeps only the generate-document process links from a usage overview. */
|
|
3999
|
+
function filterGenerateDocumentEntries(entries) {
|
|
4000
|
+
return entries.filter((e) => e.actionKey === GENERATE_DOCUMENT_ACTION_KEY);
|
|
4001
|
+
}
|
|
4002
|
+
|
|
3991
4003
|
class EpistolaProcessLinkSelectorComponent {
|
|
3992
4004
|
adminService;
|
|
3993
4005
|
cdr;
|
|
@@ -4038,7 +4050,7 @@ class EpistolaProcessLinkSelectorComponent {
|
|
|
4038
4050
|
this.cdr.markForCheck();
|
|
4039
4051
|
this.loadSubscription = this.adminService.getPluginUsage().subscribe({
|
|
4040
4052
|
next: (entries) => {
|
|
4041
|
-
this.filteredEntries = entries
|
|
4053
|
+
this.filteredEntries = filterGenerateDocumentEntries(entries);
|
|
4042
4054
|
this.loading = false;
|
|
4043
4055
|
// Restore selection from value
|
|
4044
4056
|
if (this.value) {
|