-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from LabKey/fb_merge_23.11_to_develop
Merge discvr-23.11 to develop
- Loading branch information
Showing
46 changed files
with
1,706 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
SequenceAnalysis/resources/web/SequenceAnalysis/window/ArchiveReadsetsWindow.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
Ext4.define('SequenceAnalysis.window.ArchiveReadsetsWindow', { | ||
extend: 'Ext.window.Window', | ||
|
||
statics: { | ||
buttonHandler: function(dataRegionName){ | ||
Ext4.create('SequenceAnalysis.window.ArchiveReadsetsWindow', { | ||
dataRegionName: dataRegionName, | ||
readsetIds: LABKEY.DataRegions[dataRegionName].getChecked() | ||
}).show(); | ||
} | ||
}, | ||
|
||
initComponent: function() { | ||
Ext4.apply(this, { | ||
modal: true, | ||
title: 'Archive Readsets', | ||
width: 600, | ||
bodyStyle: 'padding: 5px;', | ||
defaults: { | ||
border: false | ||
}, | ||
items: [{ | ||
html: 'This helper will delete the actual FASTQ files associated with the selected readsets. It will error unless each readdata row has an SRA accession listed. You selected ' + this.readsetIds.length + ' readsets.', | ||
style: 'padding-bottom: 10px;' | ||
}], | ||
buttons: [{ | ||
text: 'Submit', | ||
scope: this, | ||
handler: this.onSubmit | ||
},{ | ||
text: 'Cancel', | ||
handler: function(btn){ | ||
btn.up('window').close(); | ||
} | ||
}] | ||
}); | ||
|
||
this.callParent(arguments); | ||
}, | ||
|
||
onSubmit: function(btn){ | ||
if (!this.readsetIds.length) { | ||
Ext4.Msg.alert('Error', 'No readsets selected!'); | ||
return; | ||
} | ||
|
||
Ext4.Msg.wait('Saving...'); | ||
LABKEY.Ajax.request({ | ||
url: LABKEY.ActionURL.buildURL('sequenceanalysis', 'archiveReadsets', null), | ||
method: 'POST', | ||
jsonData: { | ||
readsetIds: this.readsetIds | ||
}, | ||
scope: this, | ||
success: function(){ | ||
Ext4.Msg.hide(); | ||
this.close(); | ||
Ext4.Msg.alert('Success', 'Readsets archived!', function(){ | ||
if (this.dataRegionName){ | ||
LABKEY.DataRegions[this.dataRegionName].clearSelected(); | ||
} | ||
|
||
LABKEY.DataRegions[this.dataRegionName].refresh(); | ||
}, this); | ||
}, | ||
failure: LABKEY.Utils.getCallbackWrapper(LDK.Utils.getErrorCallback()) | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.