Skip to content

Commit

Permalink
Re-arranged some control buttons (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud committed Dec 14, 2020
1 parent 967174c commit 9ff6eae
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/layout/Controls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@
<ClipboardIcon />
</Button>

<Button
v-if="features.power && !viewOnly"
:title="t('controls.power')"
:disabled="connecting || !power"
@click="$emit('power', $event)"
>
<PowerIcon />
</Button>

<Button
v-if="features.viewportDragging"
:title="t('controls.drag')"
Expand Down Expand Up @@ -88,15 +97,6 @@
</Button>
</template>

<Button
v-if="features.power && !viewOnly"
:title="t('controls.power')"
:disabled="connecting || !power"
@click="$emit('power', $event)"
>
<PowerIcon />
</Button>

<Button
v-if="connecting || reconnecting || connected"
:title="t('controls.disconnect')"
Expand Down

0 comments on commit 9ff6eae

Please sign in to comment.