This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git

commit c989341c22abd4bbaa6693e98e4c8d8894c2f1a6
Author: Alex Heneveld <[email protected]>
AuthorDate: Wed Sep 15 12:09:45 2021 +0100

    use scroll for error (otherwise overflows) and
    
    don't auto-dismiss (not enough time to read it); user can manually dismiss 
by pressing the X
---
 .../app/components/catalog-saver/catalog-saver.less                 | 6 ++++++
 .../app/components/catalog-saver/catalog-saver.modal.template.html  | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.less 
b/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.less
index a7faa18..a313b9c 100644
--- 
a/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.less
+++ 
b/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.less
@@ -25,3 +25,9 @@
     width: 400px;
   }
 }
+
+.add-to-catalog-modal {
+  .error-scroll {
+    overflow: scroll;
+  }
+}
diff --git 
a/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.modal.template.html
 
b/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.modal.template.html
index 4f82358..71a9c63 100644
--- 
a/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.modal.template.html
+++ 
b/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.modal.template.html
@@ -127,9 +127,9 @@
         </div>
     </div>
 
-    <div uib-alert class="alert-danger" ng-if="state.error" 
dismiss-on-timeout="10000" close="state.error = undefined">
+    <div uib-alert class="alert-danger" ng-if="state.error" close="state.error 
= undefined">
         <h4>Failed to save</h4>
-        <p>{{state.error}}</p>
+        <p class="error-scroll">{{state.error}}</p>
     </div>
 </div>
 

Reply via email to