Add basic context-menu for actions.

This commit is contained in:
Gunther Brunner
2014-09-25 16:24:57 +09:00
parent c33d95ba7a
commit f705cd60a7
9 changed files with 86 additions and 4 deletions

View File

@@ -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