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

View File

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

View File

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