From 6de09c59501b176e842bdcce49d548fb5da2bbaf Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Mon, 27 Jun 2022 19:12:40 +0200 Subject: [PATCH] fix: events ui --- app/views/console/functions/function.phtml | 12 +++++++- app/views/console/webhooks/webhook.phtml | 12 +++++++- public/dist/scripts/app-all.js | 7 +++-- public/dist/scripts/app.js | 7 +++-- public/scripts/events.js | 35 +++++++++++++++++----- 5 files changed, 57 insertions(+), 16 deletions(-) diff --git a/app/views/console/functions/function.phtml b/app/views/console/functions/function.phtml index 0a66b43448..5d5cc20b9f 100644 --- a/app/views/console/functions/function.phtml +++ b/app/views/console/functions/function.phtml @@ -4,7 +4,12 @@ $fileLimitHuman = $this->getParam('fileLimitHuman', 0); $events = $this->getParam('events', []); $timeout = $this->getParam('timeout', 900); $usageStatsEnabled = $this->getParam('usageStatsEnabled', true); -$patterns = []; +$patterns = [ + 'documents', + 'documents.create', + 'documents.update', + 'documents.delete', +]; foreach ($events as $name => $event) { $patterns[] = $name; @@ -662,6 +667,11 @@ sort($patterns);
Leave empty for wildcard
+
+ + +
Leave empty for wildcard
+
Leave empty for wildcard
+
+ + +
Leave empty for wildcard
+