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:
Scott Idem
2026-03-16 11:00:45 -04:00
parent 45fbf35c6b
commit a79be722ae
2 changed files with 5 additions and 1 deletions

View File

@@ -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}
>