Minor changes.
This commit is contained in:
@@ -102,7 +102,10 @@ let ae_trigger: any = null;
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{#if $ae_loc.trusted_access && $ae_loc.edit_mode}
|
{#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
|
<span
|
||||||
class="flex flex-row gap-1 items-center justify-around"
|
class="flex flex-row gap-1 items-center justify-around"
|
||||||
>
|
>
|
||||||
@@ -219,53 +222,57 @@ let ae_trigger: any = null;
|
|||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="ae_options">
|
<div class="ae_options">
|
||||||
<!-- {#if $ae_loc.trusted_access} -->
|
<!-- {#if $ae_loc.trusted_access} -->
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={!$ae_loc.trusted_access}
|
disabled={!$ae_loc.trusted_access}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
if (!confirm('Add new archive content?')) {
|
if (!confirm('Add new archive content?')) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$idaa_slct.archive_content_id = null;
|
$idaa_slct.archive_content_id = null;
|
||||||
$idaa_slct.archive_content_obj = {};
|
$idaa_slct.archive_content_obj = {};
|
||||||
|
|
||||||
$idaa_sess.archives.show__modal_view__archive_content_id = false;
|
$idaa_sess.archives.show__modal_view__archive_content_id = false;
|
||||||
$idaa_sess.archives.show__modal_edit__archive_content_id = true;
|
$idaa_sess.archives.show__modal_edit__archive_content_id = true;
|
||||||
}}
|
}}
|
||||||
class="btn btn-sm variant-glass-warning"
|
class="btn btn-sm variant-glass-warning"
|
||||||
title={`Add content for: ${$lq__archive_obj?.name}`}
|
title={`Add content for: ${$lq__archive_obj?.name}`}
|
||||||
>
|
>
|
||||||
<span class="fas fa-plus m-1"></span> Add Content
|
<span class="fas fa-plus m-1"></span> Add Content
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={!$ae_loc.administrator_access}
|
disabled={!$ae_loc.administrator_access}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
// $idaa_slct.archive_id = $lq__archive_obj?.archive_id_random;
|
// $idaa_slct.archive_id = $lq__archive_obj?.archive_id_random;
|
||||||
// $lq__archive_obj? = $lq__archive_obj?;
|
// $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);
|
// const url = new URL(location);
|
||||||
// url.searchParams.set('archive_id', $lq__archive_obj?.archive_id_random);
|
// url.searchParams.set('archive_id', $lq__archive_obj?.archive_id_random);
|
||||||
// history.pushState({}, '', url);
|
// history.pushState({}, '', url);
|
||||||
|
|
||||||
// $idaa_sess.archives.show_main__options = false;
|
// $idaa_sess.archives.show_main__options = false;
|
||||||
// $idaa_sess.archives.show_list__archive_obj_li = false;
|
// $idaa_sess.archives.show_list__archive_obj_li = false;
|
||||||
$idaa_sess.archives.show__modal_view__archive_id = false;
|
$idaa_sess.archives.show__modal_view__archive_id = false;
|
||||||
$idaa_sess.archives.show__modal_edit__archive_id = $idaa_slct.archive_id;
|
$idaa_sess.archives.show__modal_edit__archive_id = $idaa_slct.archive_id;
|
||||||
}}
|
}}
|
||||||
class="btn btn-sm variant-glass-warning"
|
class="btn btn-sm variant-glass-warning"
|
||||||
title={`Edit archive: ${$lq__archive_obj?.name}`}
|
title={`Edit archive: ${$lq__archive_obj?.name}`}
|
||||||
>
|
>
|
||||||
<span class="fas fa-edit m-1"></span> Edit Archive
|
<span class="fas fa-edit m-1"></span> Edit Archive
|
||||||
</button>
|
</button>
|
||||||
<!-- {/if} -->
|
<!-- {/if} -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -212,7 +212,7 @@ $: if ($idaa_trig.event_li_qry) {
|
|||||||
qry_str: $idaa_loc.recovery_meetings.qry__fulltext_str,
|
qry_str: $idaa_loc.recovery_meetings.qry__fulltext_str,
|
||||||
params: params,
|
params: params,
|
||||||
try_cache: try_cache,
|
try_cache: try_cache,
|
||||||
log_lvl: 2,
|
log_lvl: log_lvl,
|
||||||
})
|
})
|
||||||
.then(function (search_results) {
|
.then(function (search_results) {
|
||||||
// Processing the results from the search.
|
// Processing the results from the search.
|
||||||
|
|||||||
Reference in New Issue
Block a user