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