Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings #174

Merged
merged 6 commits into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 16 additions & 18 deletions packages/frontend/pages/provenance/[deviceKey].vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,26 @@
their items.
-->
<script setup lang="ts">
const route = useRoute()
const deviceKey = route.params.deviceKey;
const route = useRoute()
const deviceKey = route.params.deviceKey;
</script>

<template>
<div class="container-md">
<div v-if="!isLoading">
<template v-if="deviceKeyFound">
<div class="my-4 text-iris fs-1">"{{ deviceRecord.deviceName }}" Asset History Records</div>
<div v-if="!isLoading">
<div v-if="deviceKeyFound">
<h1>"{{ deviceRecord.deviceName }}" Asset History Records</h1>
<div>Device ID: {{ deviceKey }}</div>
<p>
<a href="#createRecord">Go to "Create New History Record"</a>
<a href="#createRecord">Go to "Create New History Record"</a>
</p>
<ProvenancePriorityNotices :deviceKey="deviceKey" :provenance="provenance"/>
<a href = "#createdDevicePoint"><button class = "textToLinkButton0">Click to <i><textToLink class = "textToLink">Device Creation</textToLink></i></button></a>
<br><a href = "#createRecord"><button class = "textToLinkButton1">Click to <i><textToLink class = "textToLink">"Create New History Record"</textToLink></i></button></a>
<br><a href = "#childKeys"><button class = "textToLinkButton2">Click to <i><textToLink class = "textToLink">Child Keys</textToLink></i></button></a>
<div>
<ProvenanceFeed :deviceKey="deviceKey" :provenance="provenance"/>
</div>
<hr class="col-1 my-4">
<a href="#createdDevicePoint"><button class="textToLinkButton0">Click to <i><textToLink class="textToLink">Device Creation</textToLink></i></button></a>
<br><a href="#createRecord"><button class="textToLinkButton1">Click to <i><textToLink class="textToLink">"Create New History Record"</textToLink></i></button></a>
<br><a href="#childKeys"><button class="textToLinkButton2">Click to <i><textToLink class="textToLink">Child Keys</textToLink></i></button></a>
<div>
<ProvenanceFeed :deviceKey="deviceKey" :provenance="provenance"/>
</div>
<hr class="col-1 my-4">
<ProvenanceCreateRecord :deviceRecord="deviceRecord" :deviceKey="deviceKey" id="createRecord"/>
<!--Put the Reporting Key here if there is one -->
<div v-if="!isLoading">
Expand All @@ -45,10 +44,9 @@ const deviceKey = route.params.deviceKey;
<ProvenanceNotificationSignUpModal/>
</div> -->

</template>
<template v-else>
<p>Device key not found.</p>
</template>
</div>
<div v-else>
<p>Device key not found.</p>
</div>
</div>
</template>
Expand Down