disabled hasFile checkbox for dms edit forms
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-07-17 10:55:58 +02:00
parent c51c4383ce
commit f56423bac9
3 changed files with 4 additions and 9 deletions

View File

@ -29,10 +29,6 @@ module.exports = Self => {
}, {
arg: 'description',
type: 'String'
}, {
arg: 'hasFile',
type: 'Boolean',
description: 'True if has original file'
}, {
arg: 'hasFileAttached',
type: 'Boolean',
@ -49,7 +45,7 @@ module.exports = Self => {
});
Self.updateFile = async(ctx, id, warehouseId, companyId,
dmsTypeId, reference, description, hasFile, hasFileAttached, options) => {
dmsTypeId, reference, description, hasFileAttached, options) => {
const models = Self.app.models;
let tx;
@ -74,8 +70,7 @@ module.exports = Self => {
companyFk: companyId,
warehouseFk: warehouseId,
reference: reference,
description: description,
hasFile: hasFile
description: description
}, myOptions);
if (hasFileAttached)

View File

@ -49,7 +49,7 @@
</vn-input-file>
</vn-horizontal>
<vn-vertical>
<vn-check
<vn-check disabled="true"
label="Generate identifier for original file"
field="$ctrl.dms.hasFile">
</vn-check>

View File

@ -49,7 +49,7 @@
</vn-input-file>
</vn-horizontal>
<vn-vertical>
<vn-check
<vn-check disabled="true"
label="Generate identifier for original file"
field="$ctrl.dms.hasFile">
</vn-check>