Resolve build errors
This commit is contained in:
parent
0704714912
commit
c426f53f13
|
@ -1,5 +1,6 @@
|
||||||
import {IListViewItems } from "./IListViewItems";
|
import {IListViewItems } from "./IListViewItems";
|
||||||
import { WebPartContext } from '@microsoft/sp-webpart-base';
|
import { WebPartContext } from '@microsoft/sp-webpart-base';
|
||||||
|
import { SyntheticEvent } from "react";
|
||||||
export enum panelMode {
|
export enum panelMode {
|
||||||
"New",
|
"New",
|
||||||
"edit",
|
"edit",
|
||||||
|
@ -10,6 +11,6 @@ export interface ITenantPropertyPanelProps {
|
||||||
mode:panelMode;
|
mode:panelMode;
|
||||||
showPanel: boolean;
|
showPanel: boolean;
|
||||||
TenantProperty: IListViewItems ;
|
TenantProperty: IListViewItems ;
|
||||||
onDismiss(refresh?:boolean) : void;
|
onDismiss(ev?: SyntheticEvent<HTMLElement, Event>, refresh?: boolean) : void;
|
||||||
context: WebPartContext;
|
context: WebPartContext;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ import { MessageBar, MessageBarType } from 'office-ui-fabric-react/lib/MessageBa
|
||||||
import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner';
|
import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner';
|
||||||
import { WebPartTitle } from "@pnp/spfx-controls-react/lib/WebPartTitle";
|
import { WebPartTitle } from "@pnp/spfx-controls-react/lib/WebPartTitle";
|
||||||
import * as strings from 'TenantPropertiesWebPartStrings';
|
import * as strings from 'TenantPropertiesWebPartStrings';
|
||||||
|
import { SyntheticEvent } from 'react';
|
||||||
|
|
||||||
// ListView Columns
|
// ListView Columns
|
||||||
const viewFields: IViewField[] = [
|
const viewFields: IViewField[] = [
|
||||||
|
@ -97,7 +98,7 @@ export default class TenantProperties extends React.Component<ITenantPropertiesP
|
||||||
}
|
}
|
||||||
// Panel Dismiss CallBack
|
// Panel Dismiss CallBack
|
||||||
// @param refresh refresh list?
|
// @param refresh refresh list?
|
||||||
public async onDismissPanel(refresh?: boolean) {
|
public async onDismissPanel(ev?: SyntheticEvent<HTMLElement, Event>, refresh?: boolean) {
|
||||||
this.setState({
|
this.setState({
|
||||||
showPanel: false
|
showPanel: false
|
||||||
});
|
});
|
||||||
|
|
|
@ -58,7 +58,9 @@ export default class TenantPropertyPanel extends React.Component<ITenantProperty
|
||||||
Description: this.state.tenantProperty.tenantPropertyDescription,
|
Description: this.state.tenantProperty.tenantPropertyDescription,
|
||||||
Comment: this.state.tenantProperty.tenantPropertyComment
|
Comment: this.state.tenantProperty.tenantPropertyComment
|
||||||
});
|
});
|
||||||
result ? this.props.onDismiss(true) : null;
|
if (result) {
|
||||||
|
this.props.onDismiss(null, true);
|
||||||
|
}
|
||||||
}catch(error){
|
}catch(error){
|
||||||
this.setState({errorMessage:error});
|
this.setState({errorMessage:error});
|
||||||
}
|
}
|
||||||
|
@ -72,7 +74,9 @@ export default class TenantPropertyPanel extends React.Component<ITenantProperty
|
||||||
Description: this.state.tenantProperty.tenantPropertyDescription,
|
Description: this.state.tenantProperty.tenantPropertyDescription,
|
||||||
Comment: this.state.tenantProperty.tenantPropertyComment
|
Comment: this.state.tenantProperty.tenantPropertyComment
|
||||||
});
|
});
|
||||||
result ? this.props.onDismiss(true) : null;
|
if (result) {
|
||||||
|
this.props.onDismiss(null, true);
|
||||||
|
}
|
||||||
}catch(error){
|
}catch(error){
|
||||||
this.setState({errorMessage:error});
|
this.setState({errorMessage:error});
|
||||||
}
|
}
|
||||||
|
@ -86,7 +90,9 @@ export default class TenantPropertyPanel extends React.Component<ITenantProperty
|
||||||
Description: this.state.tenantProperty.tenantPropertyDescription,
|
Description: this.state.tenantProperty.tenantPropertyDescription,
|
||||||
Comment: this.state.tenantProperty.tenantPropertyComment
|
Comment: this.state.tenantProperty.tenantPropertyComment
|
||||||
});
|
});
|
||||||
result ? this.props.onDismiss(true) : null;
|
if (result) {
|
||||||
|
this.props.onDismiss(null, true);
|
||||||
|
}
|
||||||
}catch(error){
|
}catch(error){
|
||||||
this.setState({errorMessage:error});
|
this.setState({errorMessage:error});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue