Skip to content

Commit

Permalink
feat: switch in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 3, 2019
1 parent 79e91e3 commit 2ea5023
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/devtools/views/settings/GlobalPreferences.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="global-preferences preferences">
<VueFormField title="Normalize Component Names">
<VueFormField title="Normalize component names">
<VueGroup
:value="$shared.classifyComponents"
class="extend"
Expand Down Expand Up @@ -59,21 +59,18 @@
</VueGroup>
</VueFormField>

<VueFormField title="Editable Props">
<VueGroup
<VueFormField title="Editable props">
<VueSwitch
:value="$shared.editableProps"
class="extend"
@input="$shared.editableProps = $event"
>
<VueGroupButton
:value="true"
label="On"
/>
<VueGroupButton
:value="false"
label="Off"
/>
</VueGroup>
Enable <span class="dim">(may print warnings)</span>
</VueSwitch>
</VueFormField>
</div>
</template>

<style lang="stylus" scoped>
.dim
color $darkerGrey
</style>

0 comments on commit 2ea5023

Please sign in to comment.