added another state check
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
let router = useTinyRouter();
|
||||
let company = $state(null);
|
||||
let error = null;
|
||||
let error = $state(null);
|
||||
let docType = $state(null);
|
||||
let document = $state({
|
||||
type : +router.query.document_type,
|
||||
@@ -93,12 +93,12 @@
|
||||
</style>
|
||||
|
||||
<fieldset>
|
||||
{#if docType}
|
||||
<legend>{t('document.add_new',docType)}</legend>
|
||||
{/if}
|
||||
{#if error}
|
||||
<span class="error">{error}</span>
|
||||
{/if}
|
||||
{#if docType}
|
||||
<legend>{t('document.add_new',docType)}</legend>
|
||||
{/if}
|
||||
{#if company}
|
||||
Company: {company.name}
|
||||
<fieldset>
|
||||
|
||||
Reference in New Issue
Block a user