implemented references to locations
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -98,8 +98,17 @@
|
||||
const res = await get(url);
|
||||
if (res.ok){
|
||||
yikes();
|
||||
var path = res.json();
|
||||
|
||||
const json = await res.json();
|
||||
const path = json.path;
|
||||
for (let owner of top_level){
|
||||
for (let loc of owner.locations){
|
||||
if (loc.id == path.id) {
|
||||
loc.locations = path.locations;
|
||||
location = json.location;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
error(res);
|
||||
return null;
|
||||
@@ -129,8 +138,8 @@
|
||||
} else error(res);
|
||||
}
|
||||
|
||||
function load(){
|
||||
loadUserLocations();
|
||||
async function load(){
|
||||
await loadUserLocations();
|
||||
loadPath();
|
||||
loadProperties();
|
||||
}
|
||||
@@ -235,4 +244,4 @@
|
||||
</div>
|
||||
{/if}
|
||||
{/await}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user