Working on update a lot of pages using the ae_loc hub section.
This commit is contained in:
@@ -317,8 +317,8 @@ if (browser) {
|
||||
// document.getElementsByTagName('html')[0].classList.remove('dark');
|
||||
// document.getElementsByTagName('html')[0].classList.remove('light');
|
||||
|
||||
$ae_loc.hub.show_element__access_type = false;
|
||||
$ae_loc.hub.show_element__cfg = false;
|
||||
$ae_loc.app_cfg.show_element__access_type = false;
|
||||
$ae_loc.app_cfg.show_element__cfg = false;
|
||||
} else if (iframe == 'false') {
|
||||
$ae_loc.iframe = false;
|
||||
|
||||
@@ -328,14 +328,14 @@ if (browser) {
|
||||
}
|
||||
|
||||
if (!$ae_loc.iframe && $ae_loc.trusted_access) {
|
||||
$ae_loc.hub.show_element__access_type = true;
|
||||
$ae_loc.hub.show_element__cfg = true;
|
||||
$ae_loc.app_cfg.show_element__access_type = true;
|
||||
$ae_loc.app_cfg.show_element__cfg = true;
|
||||
} else if ($ae_loc.iframe && $ae_loc.manager_access) {
|
||||
$ae_loc.hub.show_element__access_type = true;
|
||||
$ae_loc.hub.show_element__cfg = true;
|
||||
$ae_loc.app_cfg.show_element__access_type = true;
|
||||
$ae_loc.app_cfg.show_element__cfg = true;
|
||||
} else {
|
||||
$ae_loc.hub.show_element__access_type = true;
|
||||
$ae_loc.hub.show_element__cfg = false;
|
||||
$ae_loc.app_cfg.show_element__access_type = true;
|
||||
$ae_loc.app_cfg.show_element__cfg = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -422,20 +422,23 @@ $effect(() => {
|
||||
|
||||
|
||||
|
||||
{#if $ae_loc.hub?.show_element__access_type}
|
||||
{#if $ae_loc.app_cfg?.show_element__access_type}
|
||||
<Element_access_type
|
||||
hidden={$ae_loc.iframe && !$ae_loc.trusted_access}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
|
||||
<!-- {#if $ae_loc?.app_cfg?.show_element__cfg} -->
|
||||
<span
|
||||
class:hidden={!$ae_loc?.hub?.show_element__cfg}
|
||||
class:hidden={!$ae_loc?.app_cfg?.show_element__cfg}
|
||||
>
|
||||
<!-- {#if $ae_loc?.hub?.show_element__cfg} -->
|
||||
<Element_app_cfg set_theme_mode={true} set_theme_name={true} />
|
||||
<!-- {/if} -->
|
||||
<Element_app_cfg
|
||||
set_theme_mode={true}
|
||||
set_theme_name={true}
|
||||
/>
|
||||
</span>
|
||||
<!-- {/if} -->
|
||||
|
||||
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user