Skip to content

Commit

Permalink
Updated profile img
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderwalt committed Apr 18, 2024
1 parent 6d28bdb commit 2f5f8ad
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions js/application-settings-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ function selectMachine(type) {

function setMachineButton(type) {
console.log(type)
if (type == "sphinx55") {
if (localStorage.getItem("hasPlasma") == 'true') {
template = `<img src="images/mch/` + type + `plasma.png"/> OpenBuilds LEAD 1010 with Plasma Add-On`
} else if (type == "sphinx55") {
template = `<img src="images/mch/` + type + `.png"/> OpenBuilds Sphinx 55`
} else if (type == "sphinx1050") {
template = `<img src="images/mch/` + type + `.png"/> OpenBuilds Sphinx 1050`
Expand Down Expand Up @@ -435,7 +437,11 @@ function setMachineButton(type) {
template = `<img src="images/mch/sphinx55.png"/> Select Machine`
}
$('#context_toggle2').html(template);
$('#overlayimg').html(`<img src="images/mch/` + type + `.png" style="max-width:100%; max-height:100%;"/>`)
if (localStorage.getItem("hasPlasma") == 'true') {
$('#overlayimg').html(`<img src="images/mch/` + type + `plasma.png" style="max-width:100%; max-height:100%;"/>`)
} else {
$('#overlayimg').html(`<img src="images/mch/` + type + `.png" style="max-width:100%; max-height:100%;"/>`)
}
};

$(document).ready(function() {
Expand Down

0 comments on commit 2f5f8ad

Please sign in to comment.