Skip to content

Commit

Permalink
Fetch, ui
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Jun 3, 2024
1 parent 73123bf commit db94856
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions Protest/Front/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,25 @@ class Fetch extends Tabs {

this.snmp2Button = document.createElement("input");
this.snmp2Button.type = "button";
this.snmp2Button.value = "V1/V2 options";
this.snmp2Button.style.width = "180px";
this.snmp2Button.style.width = this.snmp2Button.style.minWidth = "32px";
this.snmp2Button.style.gridArea = "6 / 5";
this.snmp2Button.style.backgroundImage = "url(mono/wrench.svg?light)";
this.snmp2Button.style.backgroundSize = "24px 24px";
this.snmp2Button.style.backgroundPosition = "center";
this.snmp2Button.style.backgroundRepeat = "no-repeat";
this.snmp2Button.style.visibility = "hidden";
this.snmp2Button.style.opacity = "0";

this.snmp3Button = document.createElement("input");
this.snmp3Button.type = "button";
this.snmp3Button.value = "V3 options";
this.snmp3Button.style.width = "180px";
this.snmp3Button.style.width = this.snmp3Button.style.minWidth = "32px";
this.snmp3Button.style.gridArea = "7 / 5";
this.snmp3Button.style.backgroundImage = "url(mono/wrench.svg?light)";
this.snmp3Button.style.backgroundSize = "24px 24px";
this.snmp3Button.style.backgroundPosition = "center";
this.snmp3Button.style.backgroundRepeat = "no-repeat";
this.snmp3Button.style.visibility = "hidden";
this.snmp3Button.style.opacity = "0";

this.kerberosCheckbox = document.createElement("input");
this.kerberosCheckbox.type = "checkbox";
Expand Down Expand Up @@ -518,13 +526,13 @@ class Fetch extends Tabs {
//TODO: mDNS, SSDP

this.tabsPanel.appendChild(this.snmp2Checkbox);
const snmp2 = this.AddCheckBoxLabel(this.tabsPanel, this.snmp2Checkbox, "SNMP V1/V2");
const snmp2 = this.AddCheckBoxLabel(this.tabsPanel, this.snmp2Checkbox, "SNMP v1/2");
snmp2.style.gridArea = "6 / 3";

this.tabsPanel.appendChild(this.snmp2Button);

this.tabsPanel.appendChild(this.snmp3Checkbox);
const snmp3 = this.AddCheckBoxLabel(this.tabsPanel, this.snmp3Checkbox, "SNMP V3");
const snmp3 = this.AddCheckBoxLabel(this.tabsPanel, this.snmp3Checkbox, "SNMP v3");
snmp3.style.gridArea = "7 / 3";

this.tabsPanel.appendChild(this.snmp3Button);
Expand Down

0 comments on commit db94856

Please sign in to comment.