remove changes related to Current Use verification button
This commit is contained in:
parent
ed966cea1e
commit
ed5cd0b9fa
@ -5,7 +5,7 @@ import './verification.css';
|
|||||||
|
|
||||||
interface VerificationProps {
|
interface VerificationProps {
|
||||||
slug: string;
|
slug: string;
|
||||||
onVerify: (slug: string, verify: boolean, x: number, y: number, value: any) => void;
|
onVerify: (slug: string, verify: boolean, x: number, y: number) => void;
|
||||||
user_verified: boolean;
|
user_verified: boolean;
|
||||||
user_verified_as: string;
|
user_verified_as: string;
|
||||||
verified_count: number;
|
verified_count: number;
|
||||||
@ -24,8 +24,7 @@ class Verification extends Component<VerificationProps, any> {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const x = e.clientX / document.body.clientWidth;
|
const x = e.clientX / document.body.clientWidth;
|
||||||
const y = e.clientY / document.body.clientHeight;
|
const y = e.clientY / document.body.clientHeight;
|
||||||
const value = null;
|
this.props.onVerify(this.props.slug, verify, x, y);
|
||||||
this.props.onVerify(this.props.slug, verify, x, y, value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ interface YearDataEntryProps {
|
|||||||
mode?: 'view' | 'edit' | 'multi-edit';
|
mode?: 'view' | 'edit' | 'multi-edit';
|
||||||
onChange?: (key: string, value: any) => void;
|
onChange?: (key: string, value: any) => void;
|
||||||
|
|
||||||
onVerify: (slug: string, verify: boolean, x: number, y: number, value: any) => void;
|
onVerify: (slug: string, verify: boolean, x: number, y: number) => void;
|
||||||
user_verified: boolean;
|
user_verified: boolean;
|
||||||
user_verified_as: string;
|
user_verified_as: string;
|
||||||
verified_count: number;
|
verified_count: number;
|
||||||
|
@ -214,7 +214,7 @@ const withCopyEdit: (wc: React.ComponentType<CategoryViewProps>) => DataContaine
|
|||||||
this.doSubmit(edits);
|
this.doSubmit(edits);
|
||||||
}
|
}
|
||||||
|
|
||||||
async handleVerify(slug: string, verify: boolean, x: number, y: number, value: any) {
|
async handleVerify(slug: string, verify: boolean, x: number, y: number) {
|
||||||
const verifyPatch = {};
|
const verifyPatch = {};
|
||||||
if (verify) {
|
if (verify) {
|
||||||
verifyPatch[slug] = this.props.building[slug];
|
verifyPatch[slug] = this.props.building[slug];
|
||||||
|
@ -14,7 +14,7 @@ interface CategoryViewProps {
|
|||||||
edited: boolean;
|
edited: boolean;
|
||||||
copy: CopyProps;
|
copy: CopyProps;
|
||||||
onChange: (key: string, value: any) => void;
|
onChange: (key: string, value: any) => void;
|
||||||
onVerify: (slug: string, verify: boolean, x: number, y: number, value: any) => void;
|
onVerify: (slug: string, verify: boolean, x: number, y: number) => void;
|
||||||
|
|
||||||
/* Special handler for adding and immediately saving a new item of an array-like attribute */
|
/* Special handler for adding and immediately saving a new item of an array-like attribute */
|
||||||
onSaveAdd: (slug: string, newItem: any) => void;
|
onSaveAdd: (slug: string, newItem: any) => void;
|
||||||
|
@ -220,11 +220,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
|||||||
tooltip: "URL for current land use reference",
|
tooltip: "URL for current land use reference",
|
||||||
example: ["", "", ""],
|
example: ["", "", ""],
|
||||||
},
|
},
|
||||||
current_landuse_verified: {
|
|
||||||
category: Category.LandUse,
|
|
||||||
title: 'Has this land use been manually verified?',
|
|
||||||
example: true,
|
|
||||||
},
|
|
||||||
building_attachment_form: {
|
building_attachment_form: {
|
||||||
category: Category.Type,
|
category: Category.Type,
|
||||||
title: "Adjacency/configuration",
|
title: "Adjacency/configuration",
|
||||||
|
Loading…
Reference in New Issue
Block a user