Skip to content

Commit

Permalink
Added missing CSS class and names.
Browse files Browse the repository at this point in the history
  • Loading branch information
kvb2univpitt committed Jan 17, 2024
1 parent aed79f6 commit 87e0b63
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugin/OntologyStore/OntologyStore_ctrlr.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ i2b2.OntologyStore.refreshProductTable = function () {

if (product.downloaded) {
columns[4] = product.includeNetworkPackage
? '<input type="checkbox" class="ontstore-bs-form-check-input" id="network-' + index + '" name="network" checked="checked" disabled="disabled" />'
? '<input type="checkbox" class="ontstore-bs-form-check-input" id="network-' + index + '" name="network" disabled="disabled" checked="checked" />'
: '<input type="checkbox" class="ontstore-bs-form-check-input" id="network-' + index + '" name="network" disabled="disabled" />';
} else {
columns[4] = product.includeNetworkPackage
Expand All @@ -188,7 +188,7 @@ i2b2.OntologyStore.refreshProductTable = function () {

if (product.installed) {
columns[7] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="install-' + index + '" data-id="' + index + '" name="install" checked="checked" disabled="disabled" />';
columns[8] = '<span class="ontstore-bs-text-success">Installed</span>';
columns[8] = '<span class="ontstore-bs-text-success ontstore-bs-font-weight-bold">Installed</span>';

if (product.disabled) {
columns[9] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="disable-' + index + '" data-id="' + index + '" name="disable" checked="checked" />';
Expand All @@ -197,22 +197,22 @@ i2b2.OntologyStore.refreshProductTable = function () {
}
} else if (product.failed) {
columns[7] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="install-' + index + '" data-id="' + index + '" name="install" checked="checked" disabled="disabled" />';
columns[8] = '<span class="ontstore-bs-text-danger">Installation Failed</span>';
columns[8] = '<span class="ontstore-bs-text-danger ontstore-bs-font-weight-bold">Installation Failed</span>';
} else if (product.started) {
columns[7] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="install-' + index + '" data-id="' + index + '" name="install" checked="checked" disabled="disabled" />';
columns[8] = '<span class="ontstore-bs-text-info">Installation In Progress</span>';
columns[8] = '<span class="ontstore-bs-text-info ontstore-bs-font-weight-bold">Installation In Progress</span>';
} else {
columns[7] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="install-' + index + '" data-id="' + index + '" name="install" onclick="i2b2.OntologyStore.installCheckboxAction(' + index + ')" />';
columns[8] = '<span class="ontstore-bs-text-warning">Ready To Be Installed</span>';
columns[8] = '<span class="ontstore-bs-text-warning ontstore-bs-font-weight-bold">Ready To Be Installed</span>';
}
} else if (product.failed) {
columns[6] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="download-' + index + '" data-id="' + index + '" name="download" checked="checked" disabled="disabled" />';
columns[7] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="install-' + index + '" data-id="' + index + '" name="install" disabled="disabled" />';
columns[8] = '<span class="ontstore-bs-text-danger">Download Failed</span>';
columns[8] = '<span class="ontstore-bs-text-danger ontstore-bs-font-weight-bold">Download Failed</span>';
} else if (product.started) {
columns[6] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="download-' + index + '" data-id="' + index + '" name="download" checked="checked" disabled="disabled" />';
columns[7] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="install-' + index + '" data-id="' + index + '" name="install" disabled="disabled" />';
columns[8] = '<span class="ontstore-bs-text-info">Download In Progress</span>';
columns[8] = '<span class="ontstore-bs-text-info ontstore-bs-font-weight-bold">Download In Progress</span>';
} else {
columns[6] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="download-' + index + '" data-id="' + index + '" name="download" onclick="i2b2.OntologyStore.downloadCheckboxAction(' + index + ')" />';
columns[7] = '<input type="checkbox" class="ontstore-bs-form-check-input" id="install-' + index + '" data-id="' + index + '" name="install" onclick="i2b2.OntologyStore.installCheckboxAction(' + index + ')" />';
Expand Down
7 changes: 7 additions & 0 deletions plugin/OntologyStore/assets/OntologyStore_bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
.ontstore-bs-text-success {
color: #28a745 !important;
}
.ontstore-bs-text-warning {
color: #ffc107 !important;
}
.ontstore-bs-text-danger {
color: #dc3545 !important;
}
Expand Down Expand Up @@ -282,3 +285,7 @@
margin-top: 0.3rem;
margin-left: -1.25rem;
}

.ontstore-bs-font-weight-bold {
font-weight: 700 !important;
}

0 comments on commit 87e0b63

Please sign in to comment.