Browse Source

Clean up device panel (...) (ref #964)

- Remove "Synchronization"
- Hide "Compression" when default (on)
- Hide "Introducer" when default (off)
Jakob Borg 11 years ago
parent
commit
7273eab80e
2 changed files with 4 additions and 10 deletions
  1. 4 10
      gui/index.html
  2. 0 0
      internal/auto/gui.files.go

+ 4 - 10
gui/index.html

@@ -253,19 +253,13 @@
                       <th><span class="glyphicon glyphicon-link"></span>&emsp;<span translate>Address</span></th>
                       <td class="text-right">{{deviceAddr(deviceCfg)}}</td>
                     </tr>
-                    <tr ng-if="connections[deviceCfg.DeviceID]">
-                      <th><span class="glyphicon glyphicon-comment"></span>&emsp;<span translate>Synchronization</span></th>
-                      <td class="text-right">{{completion[deviceCfg.DeviceID]._total | alwaysNumber | number:0}}%</td>
-                    </tr>
-                    <tr>
+                    <tr ng-if="!deviceCfg.Compression">
                       <th><span class="glyphicon glyphicon-compressed"></span>&emsp;<span translate>Use Compression</span></th>
-                      <td translate ng-if="deviceCfg.Compression" class="text-right">Yes</td>
-                      <td translate ng-if="!deviceCfg.Compression" class="text-right">No</td>
+                      <td translate class="text-right">No</td>
                     </tr>
-                    <tr>
+                    <tr ng-if="deviceCfg.Introducer">
                       <th><span class="glyphicon glyphicon-thumbs-up"></span>&emsp;<span translate>Introducer</span></th>
-                      <td translate ng-if="deviceCfg.Introducer" class="text-right">Yes</td>
-                      <td translate ng-if="!deviceCfg.Introducer" class="text-right">No</td>
+                      <td translate class="text-right">Yes</td>
                     </tr>
                     <tr ng-if="connections[deviceCfg.DeviceID]">
                       <th><span class="glyphicon glyphicon-tag"></span>&emsp;<span translate>Version</span></th>

File diff suppressed because it is too large
+ 0 - 0
internal/auto/gui.files.go


Some files were not shown because too many files changed in this diff