Improvement in the showing of the edit button.

This commit is contained in:
Scott Idem
2024-09-18 17:03:49 -04:00
parent 04b549b874
commit ce476f9a65

View File

@@ -789,7 +789,11 @@ async function handle_update__data_store(
type="button"
class="ae_btn_edit__ds btn hover:variant-glass-warning text-xs absolute top-0 right-0 opacity-30 hover:opacity-100 transition delay-700 hover:delay-200 m-1 p-1"
class:opacity-5={!$ae_loc.manager_access}
class:hidden={!$ae_loc.edit_mode && !$ae_loc.administrator_access && !(show_edit_btn && $ae_loc.trusted_access)}
class:hidden={!(
($ae_loc.administrator_access && $ae_loc.edit_mode)
||
(show_edit_btn && $ae_loc.trusted_access && $ae_loc.edit_mode)
)}
on:dblclick={() => {
trigger = 'load__ds__code';
show_edit = true;