Skip to content

Commit

Permalink
Bugfix PCF view
Browse files Browse the repository at this point in the history
  • Loading branch information
aorzelskiGH committed Apr 18, 2024
1 parent 1533202 commit 2ac98b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/AasxServerBlazor/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
}
else
{
string modelText = "PCF";
if (Program.showWeight)
{
modelText = "weight";
}
<style>
input:checked ~ .dot {
transform: translateX(100%);
Expand Down Expand Up @@ -230,7 +235,7 @@
</div>
<div class="self-center text-right p-2" style="margin-top:8px;">
<label for="toggle" class="flex items-center cursor-pointer justify-end">
Disclaimer: displayed PCF values are for demo purposes only
Disclaimer: displayed @modelText values are for demo purposes only
<div class="relative ml-2">
<!-- input -->
<input type="checkbox" id="toggle" class="sr-only"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,11 @@ public void InitRegistry(List<AasxCredentialsEntry> cList, DateTime timestamp, b
// copy specific submodels locally
try
{
requestPath += queryPara;
// HEAD to get policy for submodel
if (Program.withPolicy)
{
requestPath += queryPara;
// requestPath += queryPara;
Console.WriteLine("HEAD Submodel " + requestPath);
var task = Task.Run(async () => { response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, requestPath)); });
task.Wait();
Expand Down

0 comments on commit 2ac98b4

Please sign in to comment.