diff --git a/samples/react-add-js-css-ref/src/webparts/addJsCssReference/components/AddJsCssReference.tsx b/samples/react-add-js-css-ref/src/webparts/addJsCssReference/components/AddJsCssReference.tsx index 45a257fa8..071c5a0d2 100644 --- a/samples/react-add-js-css-ref/src/webparts/addJsCssReference/components/AddJsCssReference.tsx +++ b/samples/react-add-js-css-ref/src/webparts/addJsCssReference/components/AddJsCssReference.tsx @@ -4,7 +4,7 @@ import { IAddJsCssReferenceProps } from './IAddJsCssReferenceProps'; import { escape } from '@microsoft/sp-lodash-subset'; import { TextField, MaskedTextField } from 'office-ui-fabric-react/lib/TextField'; import { ListView, IViewField, SelectionMode} from "@pnp/spfx-controls-react/lib/ListView"; -import {MessageBarType,Link,Separator, CommandBarButton,IStackStyles,Text,MessageBar,PrimaryButton,DefaultButton,Dialog,DialogFooter,DialogType,Stack, IStackTokens, updateA } from 'office-ui-fabric-react'; +import {MessageBarType,Link,Separator, CommandBarButton,IStackStyles,Text,MessageBar,PrimaryButton,DefaultButton,Dialog,DialogFooter,DialogType,Stack, IStackTokens, updateA, Icon, Spinner } from 'office-ui-fabric-react'; import { sp} from "@pnp/sp"; import "@pnp/sp/webs"; import "@pnp/sp/user-custom-actions"; @@ -46,6 +46,7 @@ export interface IAddJsCssReferenceState { showMesssage:boolean; successmessage:string; userHasPermission:boolean; + showspinner:boolean; } @@ -64,8 +65,11 @@ export default class AddJsCssReference extends React.Component - this.editClicked(item,index)} aria-hidden="true"> - this.deleteClicked(item,index)} aria-hidden="true"> + this.editClicked(item,index)} /> + this.deleteClicked(item,index)} /> + + {/* this.editClicked(item,index)} aria-hidden="true"> + this.deleteClicked(item,index)} aria-hidden="true"> */} ); @@ -109,7 +113,8 @@ export default class AddJsCssReference extends React.Component + {this.state.showspinner && + + } {this.state.userHasPermission &&
@@ -272,7 +280,7 @@ export default class AddJsCssReference extends React.Component
} - { + {!this.state.userHasPermission && !this.state.showspinner && Access denied, you do not have permission to access this section. Please connect with your site admins. @@ -291,12 +299,14 @@ export default class AddJsCssReference extends React.Component