Skip to content

Commit

Permalink
refactor: protocol edit and delete ffm
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronm-2112 committed Dec 8, 2023
1 parent 20f0990 commit 5db0320
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ const addProtocolLinktoTableDD = (protocolLink, protocolType, protocolRelation,
protocolRelation +
"</td><td class='contributor-table-row' style='display:none'>" +
protocolDesc +
"</td><td><div class='ui small basic icon buttons contributor-helper-buttons' style='display: flex'><button class='ui button' onclick='edit_current_protocol_id(this)'><i class='pen icon' style='color: var(--tagify-dd-color-primary)'></i></button><button class='ui button' onclick='delete_current_protocol_id(this)'><i class='trash alternate outline icon' style='color: red'></i></button></div></td></tr>");
"</td><td><div class='ui small basic icon buttons contributor-helper-buttons' style='display: flex'><button class='ui button' onclick='window.edit_current_protocol_id(this)'><i class='pen icon' style='color: var(--tagify-dd-color-primary)'></i></button><button class='ui button' onclick='window.delete_current_protocol_id(this)'><i class='trash alternate outline icon' style='color: red'></i></button></div></td></tr>");
};

const addAdditionalLinktoTableDD = (link, linkType, linkRelation, description) => {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/scripts/metadata-files/subjects-samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ window.edit_current_sample_id = (ev) => {
var sampleID = $(currentRow)[0].cells[2].innerText;
loadSampleInformation(ev, subjectID, sampleID);
};
const edit_current_protocol_id = async (ev) => {
window.edit_current_protocol_id = async (ev) => {
let oldProtocolLink = "";
var currentRow = $(ev).parents()[2];
var link = $(currentRow)[0].cells[1].innerText;
Expand Down Expand Up @@ -1489,7 +1489,7 @@ window.delete_current_sample_id = (ev) => {
});
};

const delete_current_protocol_id = (ev) => {
window.delete_current_protocol_id = (ev) => {
Swal.fire({
title: "Are you sure you want to delete this protocol?",
showCancelButton: true,
Expand Down

0 comments on commit 5db0320

Please sign in to comment.