worked on notes

This commit is contained in:
2025-07-28 23:21:19 +02:00
parent 65df45482f
commit 3a348ddce1
9 changed files with 22 additions and 17 deletions

View File

@@ -16,7 +16,7 @@
async function loadCompanies(){
const url = `${location.protocol}//${location.host.replace('5173','8080')}/api/company/list`;
var resp = await fetch(url,{ credentials: 'include'});
const resp = await fetch(url,{ credentials: 'include'});
if (resp.ok){
companies = await resp.json();
} else {
@@ -24,7 +24,7 @@
}
if (company_id) {
for (var comp of companies){
for (let comp of companies){
if (comp.id == company_id){
load(comp);
break;
@@ -77,7 +77,7 @@
</script>
<fieldset>
<legend>{selected_company ? t( 'list_of',selected_company.name) : t('document.list')}</legend>
<legend>{selected_company ? t( 'list_of',selected_company.name) : t('document_list')}</legend>
{#if error}
<div class="error">{error}</div>
{/if}