diff --git a/lib/galaxy/web/controllers/dataset.py b/lib/galaxy/web/controllers/dataset.py index dd561dd7d98..c34ad1f8697 100644 --- a/lib/galaxy/web/controllers/dataset.py +++ b/lib/galaxy/web/controllers/dataset.py @@ -103,6 +103,8 @@ class DatasetInterface( BaseController ): if not data: raise paste.httpexceptions.HTTPRequestRangeNotSatisfiable( "Invalid reference dataset id: %s." % str( dataset_id ) ) if trans.app.security_agent.allow_action( trans.user, data.permitted_actions.DATASET_ACCESS, dataset = data ): + if data.state == trans.model.Dataset.states.UPLOAD: + return trans.show_error_message( "Please wait until this dataset finishes uploading before attempting to view it." ) if filename is None or filename.lower() == "index": mime = trans.app.datatypes_registry.get_mimetype_by_extension( data.extension.lower() ) trans.response.set_content_type(mime) diff --git a/lib/galaxy/web/controllers/root.py b/lib/galaxy/web/controllers/root.py index 823bc29d6f0..645442a7d74 100644 --- a/lib/galaxy/web/controllers/root.py +++ b/lib/galaxy/web/controllers/root.py @@ -219,6 +219,8 @@ class RootController( BaseController ): if id is not None and data.history.user is not None and data.history.user != trans.user: return trans.show_error_message( "This instance of a dataset (%s) in a history does not belong to you." % ( data.id ) ) if trans.app.security_agent.allow_action( trans.user, data.permitted_actions.DATASET_ACCESS, dataset=data ): + if data.state == trans.model.Dataset.states.UPLOAD: + return trans.show_error_message( "Please wait until this dataset finishes uploading before attempting to edit its metadata." ) params = util.Params( kwd, safe=False ) if params.change: # The user clicked the Save button on the 'Change data type' form diff --git a/static/images/eye_icon_grey.png b/static/images/eye_icon_grey.png new file mode 100644 index 00000000000..d4da0f92c2d Binary files /dev/null and b/static/images/eye_icon_grey.png differ diff --git a/static/images/pencil_icon_grey.png b/static/images/pencil_icon_grey.png new file mode 100644 index 00000000000..c5c990b373b Binary files /dev/null and b/static/images/pencil_icon_grey.png differ diff --git a/templates/root/history_common.mako b/templates/root/history_common.mako index 5eecdcfb055..fc4ebb3bce0 100644 --- a/templates/root/history_common.mako +++ b/templates/root/history_common.mako @@ -33,8 +33,13 @@ %endif
- display data - edit attributes + %if data_state == "upload": + display data + edit attributes + %else: + display data + edit attributes + %endif delete
${hid}: ${data.display_name()}