Don't send the "valid" flag in ProofHintFlags

This commit is contained in:
N-Pex 2025-09-09 12:08:11 +02:00
parent 9eadfbaed6
commit 7e87aceec7
2 changed files with 3 additions and 9 deletions

View file

@ -46,7 +46,6 @@ 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;
@ -57,7 +56,6 @@ watch(
() => {
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 }

View file

@ -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,