Increased timeout of crouton autodismiss. Added error messaging for failed catalog...
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Tue, 4 Apr 2017 17:23:06 +0000 (13:23 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Tue, 4 Apr 2017 17:23:06 +0000 (13:23 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/framework/widgets/header/header.jsx
skyquake/framework/widgets/skyquake_container/skyquakeContainer.jsx
skyquake/plugins/composer/src/src/stores/CatalogDataStore.js

index 21f4c10..3cfaaf6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 
+ *
  *   Copyright 2016 RIFT.IO Inc
  *
  *   Licensed under the Apache License, Version 2.0 (the "License");
@@ -55,6 +55,7 @@ export default class AppHeader extends React.Component {
                 type={"error"}
                 hidden={!(this.state.validateErrorEvent && this.state.validateErrorMsg)}
                 onDismiss={HeaderStore.validateReset}
+                timeout= {5000}
             />
 
         // html = (
index d53d85f..d83c836 100644 (file)
@@ -106,6 +106,7 @@ export default class skyquakeContainer extends React.Component {
                             type={notificationType}
                             hidden={!(displayNotification && notificationMessage)}
                             onDismiss={SkyquakeContainerActions.hideNotification}
+                            timeout= {5000}
                         />
                         <ScreenLoader show={displayScreenLoader}/>
                         <SkyquakeNav nav={this.state.nav}
index 9345bc3..3e4ac7f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * 
+ *
  *   Copyright 2016 RIFT.IO Inc
  *
  *   Licensed under the Apache License, Version 2.0 (the "License");
@@ -591,6 +591,13 @@ class CatalogDataStore {
                        this.resetSelectionState();
                }
        }
+       saveCatalogItemError(data){
+               let error = JSON.parse(data.error.responseText);
+               const errorMsg = error && error.body && error.body['rpc-reply'] && JSON.stringify(error.body['rpc-reply']['rpc-error'], null, ' ')
+               ComposerAppActions.showError.defer({
+                       errorMessage: 'Unable to save the descriptor.\n' + errorMsg
+               });
+       }
 }
 
 export default alt.createStore(CatalogDataStore, 'CatalogDataStore');