From 7e0871d3b6e3a95c6158b94de5439366bc958d63 Mon Sep 17 00:00:00 2001 From: Matej Baco Date: Mon, 27 Sep 2021 10:35:18 +0200 Subject: [PATCH] Failed attributes should be hidden --- app/views/console/database/collection.phtml | 8 +++++--- app/views/console/database/document.phtml | 20 ++++++++++---------- public/dist/scripts/app-all.js | 10 ++++++---- public/dist/scripts/app.js | 6 +++--- 4 files changed, 24 insertions(+), 20 deletions(-) diff --git a/app/views/console/database/collection.phtml b/app/views/console/database/collection.phtml index 9ed23dbbf8..549bccb4eb 100644 --- a/app/views/console/database/collection.phtml +++ b/app/views/console/database/collection.phtml @@ -63,16 +63,18 @@ $logs = $this->getParam('logs', null); - + -
- + + + []
+ n/a diff --git a/app/views/console/database/document.phtml b/app/views/console/database/document.phtml index c21e12d6bd..80937c989e 100644 --- a/app/views/console/database/document.phtml +++ b/app/views/console/database/document.phtml @@ -60,9 +60,9 @@ $logs = $this->getParam('logs', null); data-name="project-document" data-scope="sdk" data-event="submit" - data-success="alert,trigger" - data-success-param-alert-text="Updated document successfully" + data-success="trigger,redirect" data-success-param-trigger-events="database.updateDocument" + data-success-param-redirect-url="/console/database/document?id={{serviceData.$id}}&collection={{project-collection.$id}}&project={{router.params.project}}" data-failure="alert" data-failure-param-alert-text="Failed to update document" data-failure-param-alert-classname="error"> @@ -86,7 +86,7 @@ $logs = $this->getParam('logs', null);
    -
  • +