This commit is contained in:
Timothy J. Baek
2024-06-27 12:16:55 -07:00
parent c262d9ad4f
commit c8c85ba7fc
3 changed files with 55 additions and 22 deletions

View File

@@ -286,13 +286,15 @@
</FunctionMenu>
<div class=" self-center mx-1">
<Switch
bind:state={func.is_active}
on:change={async (e) => {
toggleFunctionById(localStorage.token, func.id);
models.set(await getModels(localStorage.token));
}}
/>
<Tooltip content={func.is_active ? 'Enabled' : 'Disabled'}>
<Switch
bind:state={func.is_active}
on:change={async (e) => {
toggleFunctionById(localStorage.token, func.id);
models.set(await getModels(localStorage.token));
}}
/>
</Tooltip>
</div>
</div>
</div>