chore: format
This commit is contained in:
@@ -518,7 +518,9 @@
|
||||
<button
|
||||
class="self-center w-fit text-sm p-1.5 dark:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
||||
type="button"
|
||||
aria-label={model?.meta?.hidden ? $i18n.t('Show') : $i18n.t('Hide')}
|
||||
aria-label={model?.meta?.hidden
|
||||
? $i18n.t('Show')
|
||||
: $i18n.t('Hide')}
|
||||
on:click={(e) => {
|
||||
e.stopPropagation();
|
||||
hideModelHandler(model);
|
||||
|
||||
@@ -335,7 +335,12 @@
|
||||
onChange={async () => {
|
||||
if (edit && model?.id) {
|
||||
try {
|
||||
await updateModelAccessGrants(localStorage.token, model.id, model.name ?? name, accessGrants);
|
||||
await updateModelAccessGrants(
|
||||
localStorage.token,
|
||||
model.id,
|
||||
model.name ?? name,
|
||||
accessGrants
|
||||
);
|
||||
toast.success($i18n.t('Saved'));
|
||||
} catch (error) {
|
||||
toast.error(error?.detail ?? `${error}`);
|
||||
|
||||
Reference in New Issue
Block a user