Minor changes.

This commit is contained in:
Scott Idem
2024-11-20 19:06:07 -05:00
parent e4485f2bda
commit fcec4ed96f
2 changed files with 49 additions and 42 deletions

View File

@@ -102,7 +102,10 @@ let ae_trigger: any = null;
{/if}
</div>
{#if $ae_loc.trusted_access && $ae_loc.edit_mode}
<section class="ae_section ae_options filters_and_search flex flex-col gap-1 variant-ghost-success my-2 p-2 border rounded-md items-center justify-center">
<span
class="flex flex-row gap-1 items-center justify-around"
>
@@ -219,53 +222,57 @@ let ae_trigger: any = null;
{/if}
</span>
<div class="ae_options">
<!-- {#if $ae_loc.trusted_access} -->
<button
type="button"
disabled={!$ae_loc.trusted_access}
on:click={() => {
if (!confirm('Add new archive content?')) {
return false;
}
$idaa_slct.archive_content_id = null;
$idaa_slct.archive_content_obj = {};
<div class="ae_options">
<!-- {#if $ae_loc.trusted_access} -->
<button
type="button"
disabled={!$ae_loc.trusted_access}
on:click={() => {
if (!confirm('Add new archive content?')) {
return false;
}
$idaa_slct.archive_content_id = null;
$idaa_slct.archive_content_obj = {};
$idaa_sess.archives.show__modal_view__archive_content_id = false;
$idaa_sess.archives.show__modal_edit__archive_content_id = true;
}}
class="btn btn-sm variant-glass-warning"
title={`Add content for: ${$lq__archive_obj?.name}`}
>
<span class="fas fa-plus m-1"></span> Add Content
</button>
$idaa_sess.archives.show__modal_view__archive_content_id = false;
$idaa_sess.archives.show__modal_edit__archive_content_id = true;
}}
class="btn btn-sm variant-glass-warning"
title={`Add content for: ${$lq__archive_obj?.name}`}
>
<span class="fas fa-plus m-1"></span> Add Content
</button>
<button
type="button"
disabled={!$ae_loc.administrator_access}
on:click={() => {
// $idaa_slct.archive_id = $lq__archive_obj?.archive_id_random;
// $lq__archive_obj? = $lq__archive_obj?;
<button
type="button"
disabled={!$ae_loc.administrator_access}
on:click={() => {
// $idaa_slct.archive_id = $lq__archive_obj?.archive_id_random;
// $lq__archive_obj? = $lq__archive_obj?;
$idaa_slct.archive_obj = $lq__archive_obj;
$idaa_slct.archive_obj = $lq__archive_obj;
// const url = new URL(location);
// url.searchParams.set('archive_id', $lq__archive_obj?.archive_id_random);
// history.pushState({}, '', url);
// const url = new URL(location);
// url.searchParams.set('archive_id', $lq__archive_obj?.archive_id_random);
// history.pushState({}, '', url);
// $idaa_sess.archives.show_main__options = false;
// $idaa_sess.archives.show_list__archive_obj_li = false;
$idaa_sess.archives.show__modal_view__archive_id = false;
$idaa_sess.archives.show__modal_edit__archive_id = $idaa_slct.archive_id;
}}
class="btn btn-sm variant-glass-warning"
title={`Edit archive: ${$lq__archive_obj?.name}`}
>
<span class="fas fa-edit m-1"></span> Edit Archive
</button>
<!-- {/if} -->
</div>
// $idaa_sess.archives.show_main__options = false;
// $idaa_sess.archives.show_list__archive_obj_li = false;
$idaa_sess.archives.show__modal_view__archive_id = false;
$idaa_sess.archives.show__modal_edit__archive_id = $idaa_slct.archive_id;
}}
class="btn btn-sm variant-glass-warning"
title={`Edit archive: ${$lq__archive_obj?.name}`}
>
<span class="fas fa-edit m-1"></span> Edit Archive
</button>
<!-- {/if} -->
</div>
</section>
{/if}
</section>
</section>

View File

@@ -212,7 +212,7 @@ $: if ($idaa_trig.event_li_qry) {
qry_str: $idaa_loc.recovery_meetings.qry__fulltext_str,
params: params,
try_cache: try_cache,
log_lvl: 2,
log_lvl: log_lvl,
})
.then(function (search_results) {
// Processing the results from the search.