upload form: fix disabling of publish button on files

parent a776ceb0
......@@ -36,7 +36,7 @@
data-toggle="modal"
data-target="#warningModal"
ng-hide="recordsVM.invenioRecordsArgs.templateParams.is_published || !recordsVM.invenioRecordsModel.pub_id"
ng-disabled="depositionForm.$invalid || depositionForm.$dirty || recordsVM.invenioRecordsLoading"
ng-disabled="depositionForm.$invalid || depositionForm.$dirty || recordsVM.invenioRecordsLoading || (filesVM.files | checkAllFilesUploaded) || filesVM.files.length == 0"
ng-attr-title="{{(depositionForm.$invalid || depositionForm.$dirty || recordsVM.invenioRecordsLoading) && 'You need to save your deposit first'
|| (filesVM.files | checkAllFilesUploaded) && 'There are pending files to be uploaded'
|| (filesVM.files.length == 0) && 'You need to upload at least one file'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment