mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
history panel: remove display, edit, and delete buttons from hdas in the new state; pack scripts
This commit is contained in:
@@ -201,6 +201,7 @@ var HDABaseView = BaseView.extend( LoggableMixin ).extend(
|
||||
// don't show display if not viewable or not accessible
|
||||
// (do show if in error, running)
|
||||
if( ( this.model.get( 'state' ) === HistoryDatasetAssociation.STATES.NOT_VIEWABLE )
|
||||
|| ( this.model.get( 'state' ) === HistoryDatasetAssociation.STATES.NEW )
|
||||
|| ( !this.model.get( 'accessible' ) ) ){
|
||||
this.displayButton = null;
|
||||
return null;
|
||||
|
||||
@@ -99,8 +99,8 @@ var HDAEditView = HDABaseView.extend( LoggableMixin ).extend(
|
||||
// don't show edit while uploading, in-accessible
|
||||
// DO show if in error (ala previous history panel)
|
||||
//TODO??: not viewable/accessible are essentially the same (not viewable set from accessible)
|
||||
if( ( this.model.get( 'state' ) === HistoryDatasetAssociation.STATES.UPLOAD )
|
||||
//|| ( this.model.get( 'state' ) === HistoryDatasetAssociation.STATES.ERROR )
|
||||
if( ( this.model.get( 'state' ) === HistoryDatasetAssociation.STATES.NEW )
|
||||
|| ( this.model.get( 'state' ) === HistoryDatasetAssociation.STATES.UPLOAD )
|
||||
|| ( this.model.get( 'state' ) === HistoryDatasetAssociation.STATES.NOT_VIEWABLE )
|
||||
|| ( !this.model.get( 'accessible' ) ) ){
|
||||
this.editButton = null;
|
||||
@@ -136,7 +136,8 @@ var HDAEditView = HDABaseView.extend( LoggableMixin ).extend(
|
||||
_render_deleteButton : function(){
|
||||
// don't show delete if...
|
||||
//TODO??: not viewable/accessible are essentially the same (not viewable set from accessible)
|
||||
if( ( this.model.get( 'state' ) === HistoryDatasetAssociation.STATES.NOT_VIEWABLE )
|
||||
if( ( this.model.get( 'state' ) === HistoryDatasetAssociation.STATES.NEW )
|
||||
|| ( this.model.get( 'state' ) === HistoryDatasetAssociation.STATES.NOT_VIEWABLE )
|
||||
|| ( !this.model.get( 'accessible' ) ) ){
|
||||
this.deleteButton = null;
|
||||
return null;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user