Handling of about to be kicked devices improved.

This commit is contained in:
Gunther Brunner
2014-04-08 17:59:08 +09:00
parent 0bce25cabf
commit c6a34713f0
3 changed files with 38 additions and 15 deletions

View File

@@ -19,16 +19,17 @@
i(ng-show='!showScreen', tooltip-html-unsafe='{{"View device"|translate}}<br /><code>⌘-⇧-O</code>', tooltip-placement='left').fa.fa-eye-slash
div
a.stf-vnc-device-name.pointer.unselectable.dropdown-toggle(ng-class='{"pointer": groupDevices.length > 1, "cursor": groupDevices.length <= 1}')
p {{ $root.device.name }}
span.caret(ng-show='groupDevices.length > 1')
a.stf-vnc-device-name.pointer.unselectable.dropdown-toggle
p
.device-small-image
img(ng-src='{{$root.device.image ? "/static/devices/" + $root.device.image : "/static/bower_components/stf-graphics/devices/small/default.jpg" }}')
span {{ $root.device.name }}
span.caret(ng-show='groupDevices.length > 0')
span(ng-show='$root.device && !$root.device.present', translate) (Absent)
ul.dropdown-menu.pointer.unselectable(ng-show='groupDevices.length > 1')
ul.dropdown-menu.pointer.unselectable(ng-show='groupDevices.length > 0')
li(ng-repeat='groupDevice in groupDevices')
a(ng-click='controlDevice(groupDevice); $event.stopPropagation();')
a(ng-click='controlDevice(groupDevice); $event.stopPropagation()')
.device-small-image
img(ng-src='{{groupDevice.image ? "/static/devices/" + groupDevice.image : "/static/bower_components/stf-graphics/devices/small/default.jpg" }}')
span {{ groupDevice.name }}