This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user