localization and small fixes

This commit is contained in:
Henry Jameson 2018-11-20 20:58:20 +03:00
parent cb8218c3c1
commit 32132e225c
6 changed files with 99 additions and 54 deletions

View file

@ -1,16 +1,15 @@
<template>
<div class="opacity-control" :class="{ disabled: !present || disabled }">
<div class="opacity-control style-control" :class="{ disabled: !present || disabled }">
<label :for="name" class="label">
{{$t('settings.opacity')}}
{{$t('settings.style.common.opacity')}}
</label>
<input
v-if="typeof fallback !== 'undefined'"
class="opt"
:id="name + '-o'"
type="checkbox"
:checked="present"
@input="$emit('input', !present ? fallback : undefined)"
>
v-if="typeof fallback !== 'undefined'"
class="opt"
:id="name + '-o'"
type="checkbox"
:checked="present"
@input="$emit('input', !present ? fallback : undefined)">
<label v-if="typeof fallback !== 'undefined'" class="opt-l" :for="name + '-o'"></label>
<input
:id="name"