This commit is contained in:
2020-09-29 21:48:13 +00:00
parent cb59cc910b
commit 0e6d902af6
3 changed files with 96 additions and 2 deletions

View File

@@ -287,6 +287,7 @@
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
{{ obj.scale }}
<gz-decimal
v-model="obj.scale"
:readonly="formState.readOnly"
@@ -294,6 +295,12 @@
:clearable="!formState.readOnly"
@click:clear="fieldValueChanged('scale')"
:label="$ay.t('ReportScale')"
:rules="[
form().decimalValid(this, 'scale'),
form().required(this, 'scale'),
form().minValueValid(this, 'scale', 0.1),
form().maxValueValid(this, 'scale', 2)
]"
:error-messages="form().serverErrors(this, 'scale')"
ref="scale"
:data-cy="!!$ay.dev ? 'scale' : false"
@@ -522,7 +529,7 @@ Handlebars.registerHelper('loud', function (aString) {
pageRanges: null,
preferCSSPageSize: false,
printBackground: false,
scale: 1
scale: 1 //Defaults to 1. Scale amount must be between 0.1 and 2.
},
formState: {
ready: false,