Remove expiry text in frontend
[osm/UI.git] / skyquake / plugins / composer / src / src / components / CatalogPackageManager.js
index c0b996c..f577f8b 100644 (file)
@@ -70,7 +70,7 @@ const CatalogPackageManager = React.createClass({
                                return (
                                        <div className="file-download">
                                                <a className="file-download-link" href={download.url}>Download Package</a>
-                                               <span>expires&nbsp;</span> {duration.humanize(true)}
+                                               {/*<span>expires&nbsp;</span> {duration.humanize(true)}*/}
 
                                        </div>
                                );
@@ -88,7 +88,7 @@ const CatalogPackageManager = React.createClass({
 
                var createItem = function (catalogPackage) {
                        const onClickRemove = function () {
-                               CatalogPackageManagerActions.removeCatalogPackage(catalogPackage);
+                               CatalogPackageManagerActions.removeCatalogOperation(catalogPackage);
                        };
                        const classNames = ClassNames('item', {'-error': catalogPackage.error, '-success': catalogPackage.success});
                        return (
@@ -106,11 +106,11 @@ const CatalogPackageManager = React.createClass({
                        );
                };
 
-               const packages = this.state.packages || [];
+               const operations = this.state.operations || [];
                return (
                        <div className="CatalogPackageManager">
                                <div className="items">
-                                       {packages.map(createItem)}
+                                       {operations.map(createItem)}
                                </div>
                        </div>
                );