Skip to content

Commit

Permalink
Get Flowcell
Browse files Browse the repository at this point in the history
  • Loading branch information
adRn-s committed Oct 24, 2024
1 parent 7bea5d1 commit 7751baa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- We have switched over to `uv` everywhere (Makefile, Docker, CI) instead of plain `pip-tools`.
- Replaced `isort` and `black` with `ruff` (CI).
- Added history tracking to the `Duty` model.
- Added a 'Get Flowcell' context menu for staff users to find where each sample is being sequenced.
- Fixed a bunch of typos.
- ...

Expand Down
15 changes: 15 additions & 0 deletions backend/static/main-hub/app/view/requests/RequestsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ Ext.define("MainHub.view.requests.RequestsController", {
margin: 5
},
items: [
{
text: "Get Flowcell",
hidden: !USER.is_staff,
handler: function () {
var url = Ext.String.format(
"/api/requests/{0}/get_flowcell/",
requestId
);
var downloadForm = Ext.create("Ext.form.Panel", {
standardSubmit: true
});
downloadForm.submit({ url: url, method: "GET" });
}
},
"-",
{
text: "View",
handler: function () {
Expand Down

0 comments on commit 7751baa

Please sign in to comment.