fix(journals): add type='button' to prevent form submission and migrate to V3 Action API for file downloads
This commit is contained in:
@@ -44,7 +44,6 @@
|
||||
|
||||
import Archive_content_obj_li from './ae_idaa_comp__archive_content_obj_li.svelte';
|
||||
import Archive_content_obj_id_edit from './ae_idaa_comp__archive_content_obj_id_edit.svelte';
|
||||
// import Media_player from './../ae_idaa_comp__media_player.svelte';
|
||||
import Modal_media_player from './ae_idaa_comp__modal_media_player.svelte';
|
||||
import Help_tech from '$lib/app_components/e_app_help_tech.svelte';
|
||||
|
||||
|
||||
@@ -91,8 +91,8 @@
|
||||
<audio autoplay controls style="max-width: 100%; max-height: 65vh;" class="w-96 h-auto">
|
||||
<source
|
||||
id="view_archive_content_audio_source"
|
||||
src="{$ae_api.base_url}/hosted_file/{$idaa_slct.archive_content_obj
|
||||
?.hosted_file_id}/download?key=${$ae_api.account_id}"
|
||||
src="{$ae_api.base_url}/v3/action/hosted_file/{$idaa_slct.archive_content_obj
|
||||
?.hosted_file_id}/download?key={$ae_api.account_id}"
|
||||
type="audio/mpeg"
|
||||
/>
|
||||
<!--<source src="audio.ogg" type="audio/ogg">-->
|
||||
@@ -103,8 +103,8 @@
|
||||
<!-- style="max-width: 100%; max-height: 65vh;" -->
|
||||
<video autoplay controls class="w-full h-auto">
|
||||
<source
|
||||
src="{$ae_api.base_url}/hosted_file/{$idaa_slct.archive_content_obj
|
||||
?.hosted_file_id}/download?key=${$ae_api.account_id}"
|
||||
src="{$ae_api.base_url}/v3/action/hosted_file/{$idaa_slct.archive_content_obj
|
||||
?.hosted_file_id}/download?key={$ae_api.account_id}"
|
||||
type="video/mp4"
|
||||
/>
|
||||
<!--<source src="video.ogg" type="video/ogg">-->
|
||||
@@ -113,15 +113,15 @@
|
||||
</video>
|
||||
{:else if file_icons[$idaa_slct.archive_content_obj.file_extension] == 'file-image'}
|
||||
<img
|
||||
src="{$ae_api.base_url}/hosted_file/{$idaa_slct.archive_content_obj
|
||||
?.hosted_file_id}/download?key=${$ae_api.account_id}"
|
||||
src="{$ae_api.base_url}/v3/action/hosted_file/{$idaa_slct.archive_content_obj
|
||||
?.hosted_file_id}/download?key={$ae_api.account_id}"
|
||||
alt={$idaa_slct.archive_content_obj.name}
|
||||
style="max-width: 100%; max-height: 65vh;"
|
||||
/>
|
||||
{:else}
|
||||
<a
|
||||
href="{$ae_api.base_url}/hosted_file/{$idaa_slct.archive_content_obj
|
||||
?.hosted_file_id}/download?key=${$ae_api.account_id}"
|
||||
href="{$ae_api.base_url}/v3/action/hosted_file/{$idaa_slct.archive_content_obj
|
||||
?.hosted_file_id}/download?key={$ae_api.account_id}"
|
||||
target="_blank"
|
||||
class="
|
||||
novi_btn
|
||||
|
||||
Reference in New Issue
Block a user