feat: add require_auth prop to hosted file download button
- Defaults to true (authenticated_access required) — no change to existing consumers - Launcher file buttons set require_auth=false to allow unauthenticated downloads
This commit is contained in:
@@ -258,6 +258,7 @@
|
||||
<AE_Comp_Hosted_Files_Download_Button
|
||||
hosted_file_id={event_file_id}
|
||||
hosted_file_obj={event_file_obj}
|
||||
require_auth={false}
|
||||
classes="btn btn-sm md:btn-md lg:btn-lg preset-tonal-primary border border-primary-500 w-full"
|
||||
click={() => {
|
||||
modal__open_event_file_id = event_file_id;
|
||||
@@ -294,6 +295,7 @@
|
||||
<AE_Comp_Hosted_Files_Download_Button
|
||||
hosted_file_id={event_file_id}
|
||||
hosted_file_obj={event_file_obj}
|
||||
require_auth={false}
|
||||
classes="btn {btn_size} gap-1 justify-between min-w-full w-full max-w-96 preset-tonal-primary border border-primary-500"
|
||||
click={handle_open_file}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user