js: add new options to permittedOperations
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Fri, 24 Aug 2018 08:33:42 +0000 (10:33 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Fri, 24 Aug 2018 08:33:42 +0000 (10:33 +0200)
--

* reflecting the new optional strings accepted by the backend.
  'file_name' and 'sender' can be  used via the 'additional'
  parameter in encrypt operations

lang/js/src/permittedOperations.js

index 6c05fc6..efb34f9 100644 (file)
@@ -94,6 +94,12 @@ export const permittedOperations = {
             },
             'wrap': {
                 allowed: ['boolean']
+            },
+            'sender': {
+                allowed: ['string']
+            },
+            'file_name': {
+                allowed: ['string']
             }
         },
         answer: {