Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42b4ad43 authored by Ronak's avatar Ronak
Browse files

adde hidden filter

parent eb28a1fd
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -192,7 +192,13 @@
              <label for="verified-boot" class="label-selector"><b>Verified Boot Status</b></label>
              <div class="radio">
                <label class="radio-label" for="verified-boot-0">
                  <input type="radio" class="rLabel" id="verified-boot-0" name="verified-boot" value="-1" checked/>
                  <input type="radio" class="rLabel" id="verified-boot-0" name="verified-boot" value="0" checked/>
                  <span class="ml-1">Hide Column</span>
                </label>
              </div>
              <div class="radio">
                <label class="radio-label" for="verified-boot-0">
                  <input type="radio" class="rLabel" id="verified-boot-0" name="verified-boot" value="-1"/>
                  <span class="ml-1">All</span>
                </label>
              </div>
@@ -245,7 +251,7 @@
            <th scope="col">Display<br />size</th>
            <th scope="col">Removable<br />(battery)</th>
            <th scope="col">SIM<br />slots</th>
            <th scope="col">Verified<br />Boot</th>
            <th scope="col" class="toggle-vb">Verified<br />Boot</th>
          </tr>
        </thead>
        {%- assign legacy_devices = 0 -%}
@@ -404,7 +410,7 @@
              {% endif %}
              {% endif %}
            </td>
            <td class="verified-boot">
            <td class="verified-boot toggle-vb">
              {% if isVerifiedBoot == 'yes' %}
              <a href="{{ device.codename }}">See supported vendors</a>
              {% else %}
+15 −8
Original line number Diff line number Diff line
@@ -53,6 +53,11 @@ function updateFilters() {
      })
      continue;
    }
    if (column === "verified-boot" && value == "0") {
      $(".toggle-vb").hide();
      continue;
    }else{
      $(".toggle-vb").show();
      if (column === "verified-boot" && value != "-1") {
        $(".smartphone-table tbody tr").each((_, el) => {
          const dataVerifiedBoot = $(el).attr("data-verified-boot");
@@ -62,6 +67,7 @@ function updateFilters() {
        })
        continue;
      }
    } 
    if (column === "legacy") {
      $(".smartphone-table tbody tr").each((_, el) => {
        const legacyDevice = $(el).attr("data-legacy");
@@ -274,4 +280,5 @@ function getNbGitlabIssues(label) {
$(document).ready(() => {
  $('#legacy-1').trigger('click');
  $('#legacy-1').trigger('change');
  $('#verified-boot-0').trigger('change');
});