Don't send the "valid" flag in ProofHintFlags
This commit is contained in:
parent
9eadfbaed6
commit
7e87aceec7
2 changed files with 3 additions and 9 deletions
|
|
@ -46,18 +46,16 @@ const props = defineProps<{
|
|||
|
||||
const infoText: Ref<string | undefined> = ref(undefined);
|
||||
const creationDate: Ref<string | undefined> = ref(undefined);
|
||||
const valid: Ref<boolean> = ref(false);
|
||||
|
||||
const hasC2PA = computed(() => {
|
||||
return props.proof?.integrity?.c2pa !== undefined;
|
||||
});
|
||||
const hasC2PA = computed(() => {
|
||||
return props.proof?.integrity?.c2pa !== undefined;
|
||||
});
|
||||
|
||||
watch(
|
||||
props,
|
||||
() => {
|
||||
infoText.value = undefined;
|
||||
creationDate.value = undefined;
|
||||
valid.value = false;
|
||||
|
||||
try {
|
||||
if (props.flags) {
|
||||
|
|
@ -88,8 +86,6 @@ watch(
|
|||
|
||||
infoText.value = result === "" ? undefined : result;
|
||||
}
|
||||
|
||||
valid.value = props.flags?.valid ?? false;
|
||||
} catch (error) {}
|
||||
},
|
||||
{ immediate: true }
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ export type ProofHintFlagsEdit = {
|
|||
}
|
||||
|
||||
export type ProofHintFlags = {
|
||||
valid: boolean;
|
||||
device?: string;
|
||||
creationDate?: Date;
|
||||
generator?: ProofHintFlagsGenerator;
|
||||
|
|
@ -304,7 +303,6 @@ export const extractProofHintFlags = (proof?: Proof): ProofHintFlags | undefined
|
|||
}
|
||||
|
||||
const flags: ProofHintFlags = {
|
||||
valid: valid,
|
||||
device: source && source.length == 1 ? source[0].value : undefined,
|
||||
creationDate: date,
|
||||
generator: generator,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue