Skip to content

Commit

Permalink
Fix related model create modal title
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Feb 26, 2024
1 parent b6a6dbf commit 8a4fa23
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
type: 'component',
component: modalComponent,
// Data
title: localItems(languageTag())['add' + capitalizeFirstLetter(data.model.localName)]
title: localItems(languageTag())['add' + capitalizeFirstLetter(model.info.localName)]
};
modalStore.trigger(modal);
}
Expand Down Expand Up @@ -256,12 +256,16 @@
{#if tabSet === index}
<div class="flex flex-row justify-between px-4 py-2">
<h4 class="font-semibold lowercase capitalize-first my-auto">
{localItems(languageTag())['associated' + capitalizeFirstLetter(model.info.localNamePlural)]}
{localItems(languageTag())[
'associated' + capitalizeFirstLetter(model.info.localNamePlural)
]}
</h4>
<button
class="btn variant-filled-primary self-end my-auto"
on:click={(_) => modalCreateForm(model)}
><i class="fa-solid fa-plus mr-2 lowercase" />{localItems(languageTag())['add' + capitalizeFirstLetter(model.info.localName)]}</button
><i class="fa-solid fa-plus mr-2 lowercase" />{localItems(languageTag())[
'add' + capitalizeFirstLetter(model.info.localName)
]}</button
>
</div>
{#if model.table}
Expand Down

0 comments on commit 8a4fa23

Please sign in to comment.