update file details view on the file manager
This commit is contained in:
parent
3219ba47aa
commit
8b13d37e71
|
@ -393,6 +393,10 @@ export default {
|
|||
body.on('file_manager.info.update.success', () => {
|
||||
$('*[data-modal="' + that.modalUrl + '"]').click()
|
||||
})
|
||||
|
||||
body.on('file_manager.info.directory.request_open', () => {
|
||||
$('*[data-modal="' + that.modalUrl + '"]').click()
|
||||
})
|
||||
},
|
||||
watch: {
|
||||
directory (directory) {
|
||||
|
|
|
@ -160,7 +160,20 @@
|
|||
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="d-block d-flex">
|
||||
<div>
|
||||
{% if splInfo.isDir %}
|
||||
<a class="btn btn-sm bg-warning" href="{{ path('admin_file_manager_index', {path: splInfo.relativePathname}) }}">
|
||||
{{ 'Open'|trans }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if splInfo.type == 'file' %}
|
||||
<a class="btn btn-sm btn-success" href="{{ asset(path) }}" target="_blank">
|
||||
{{ 'Download'|trans }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if not isLocked %}
|
||||
<button type="submit" form="form-fm-delete" class="btn btn-sm btn-danger">
|
||||
{{ 'Delete'|trans }}
|
||||
|
@ -180,17 +193,11 @@
|
|||
<span class="fa fa-lock"></span>
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
{% if splInfo.type == 'file' %}
|
||||
<a class="btn btn-sm btn-success" href="{{ asset(path) }}" target="_blank">
|
||||
{{ 'Download'|trans }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ 'Close'|trans }}</button>
|
||||
<button type="submit" class="btn btn-primary" form="form-fm-attributes">{{ 'Save'|trans }}</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue