mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 01:05:14 +02:00
Add basic context-menu for actions.
This commit is contained in:
@@ -36,8 +36,36 @@
|
||||
i.fa.fa-times
|
||||
|
||||
.as-row.fill-height
|
||||
div(ng-controller='DeviceScreenCtrl', ng-if='device', ng-file-drop='installFile($files)', ng-file-drag-over-class='dragover').fill-height
|
||||
device-screen(device='device', control='control')
|
||||
|
||||
.dropdown.context-menu(id='context-menu-{{ $index }}')
|
||||
ul.dropdown-menu(role='menu')
|
||||
li
|
||||
a.pointer(role='menuitem', ng-click='control.back(); $event.preventDefault()')
|
||||
i.fa.fa-mail-reply.fa-fw
|
||||
span(translate) Back
|
||||
li
|
||||
a.pointer(role='menuitem', ng-click='control.home(); $event.preventDefault()')
|
||||
i.fa.fa-home.fa-fw
|
||||
span(translate) Home
|
||||
li.divider
|
||||
li
|
||||
a.pointer(role='menuitem', ng-click='rotateRight(); $event.preventDefault()')
|
||||
i.fa.fa-rotate-left.fa-fw
|
||||
span(translate) Rotate Left
|
||||
li
|
||||
a.pointer(role='menuitem', ng-click='rotateLeft(); $event.preventDefault()')
|
||||
i.fa.fa-rotate-right.fa-fw
|
||||
span(translate) Rotate Right
|
||||
li.divider
|
||||
li
|
||||
a.pointer(role='menuitem', ng-click='kickDevice(device); $event.preventDefault()')
|
||||
i.fa.fa-sign-out.fa-fw
|
||||
span(translate) Stop Using
|
||||
|
||||
div(ng-controller='DeviceScreenCtrl', ng-if='device',
|
||||
ng-file-drop='installFile($files)', ng-file-drag-over-class='dragover').fill-height
|
||||
div(context-menu, data-target='context-menu-{{ $index }}').fill-height
|
||||
device-screen(device='device', control='control')
|
||||
|
||||
.stf-vnc-bottom.as-row(ng-hide='$root.standalone')
|
||||
.controls
|
||||
|
||||
Reference in New Issue
Block a user