-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redirect to mete to add barcode on click (#14)
Add the option to click on the warning that the barcode is not known, so that we can directly add it in mete. To achieve this I added the `url` prop to `Mete.vue`. NOTE: I had to cast `this.$root` to any - if you have better ideas please share! I assume this is quite hacky - nicer approaches welcome. And help wanted to fix the checks 🙃 To test this add `this.addFromBarcode('asdf?!<');` to `Register.vue`'s `mounted` function.
- Loading branch information
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
<template> | ||
<iframe ref="mete" class="meteframe" src="/mete" /> | ||
<iframe ref="mete" class="meteframe" :src="url" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from "vue"; | ||
export default defineComponent({ | ||
name: "Mete", | ||
props: { | ||
url: { | ||
type: String, | ||
required: true, | ||
} | ||
} | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters