#68: Reworked the upload progress modal to use modal-footer correctly
This commit is contained in:
parent
393cc590c1
commit
ab690b1e25
@ -220,6 +220,9 @@
|
||||
$('#upload-progress-modal').modal('hide');
|
||||
}
|
||||
});
|
||||
appUpload.$watch('statusMessages', function($value) {
|
||||
$('#upload-progress-modal').modal('handleUpdate');
|
||||
})
|
||||
});
|
||||
</script>
|
||||
@endpush
|
@ -82,23 +82,23 @@
|
||||
<p v-text="currentStatus"></p>
|
||||
</div>
|
||||
|
||||
<div v-if="statusMessages.length > 0">
|
||||
<div v-if="statusMessages.length > 0"style="max-height: 300px; overflow: scroll;">
|
||||
<p v-if="!isUploadInProgress" class="text-danger" style="font-weight: bold">
|
||||
<span v-text="imagesFailed"></span> @lang('admin.upload_file_number_failed')
|
||||
</p>
|
||||
<p v-if="imagesUploaded > 0" class="text-right">
|
||||
@lang('admin.upload_file_failed_continue')<br /><br/>
|
||||
</p>
|
||||
<p class="text-right">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal" v-if="!isUploadInProgress && imagesUploaded === 0">@lang('forms.close_action')</button>
|
||||
<a href="{{ route('albums.analyse', ['id' => $album->id, 'queue_token' => $queue_token]) }}" class="btn btn-primary" v-if="imagesUploaded > 0">@lang('forms.continue_action')</a>
|
||||
</p>
|
||||
|
||||
<ul v-for="message in statusMessages">
|
||||
<li v-bind:class="message.message_class" v-text="message.message_text"></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer" v-if="!isUploadInProgress">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal" v-if="imagesUploaded === 0">@lang('forms.close_action')</button>
|
||||
<a href="{{ route('albums.analyse', ['id' => $album->id, 'queue_token' => $queue_token]) }}" class="btn btn-primary" v-if="imagesUploaded > 0">@lang('forms.continue_action')</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user