X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fstores%2FCatalogDataStore.js;h=3e4ac7f11bfc8b5018cb9c57dd34000d91e811ae;hp=9345bc39fcdf805aef67cfa1ed6fe2f9f02717e6;hb=refs%2Fchanges%2F95%2F1495%2F1;hpb=5f89526adb1b8aaab10d61733fb1be78d03428c0 diff --git a/skyquake/plugins/composer/src/src/stores/CatalogDataStore.js b/skyquake/plugins/composer/src/src/stores/CatalogDataStore.js index 9345bc39f..3e4ac7f11 100644 --- a/skyquake/plugins/composer/src/src/stores/CatalogDataStore.js +++ b/skyquake/plugins/composer/src/src/stores/CatalogDataStore.js @@ -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');