Skip to content

Commit

Permalink
Rename of lock page to match edition tool tip
Browse files Browse the repository at this point in the history
  • Loading branch information
gcsantos-gpa committed Feb 24, 2025
1 parent ab4005a commit f02380a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Source/Applications/SystemCenter/SystemCenter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@
<Content Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\AdditionalFieldsProperties.tsx" />
<Content Include="wwwroot\Scripts\TSX\SystemCenter\ExternalDB\ByExternalTable.tsx" />
<Content Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\GenericByPage.tsx" />
<Content Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\EnterpriseEditionLockPage.tsx" />
<Content Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\EditionLockPage.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\EditionTooltip.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\CommonComponents\ExternalDBUpdate.tsx" />
<TypeScriptCompile Include="wwwroot\Scripts\TSX\SystemCenter\ExternalDB\ExternalDBTable.tsx" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//******************************************************************************************************
// EnterpriseEditionLockPage.tsx - Gbtc
// EditionLockPage.tsx - Gbtc
//
// Copyright © 2025, Grid Protection Alliance. All Rights Reserved.
//
Expand Down Expand Up @@ -30,7 +30,7 @@ interface IProps {
EditionRequirement?: 'Enterprise' | 'Base'
}

const EnterpriseEditionLockPage: React.FunctionComponent<IProps> = (props) => {
const EditionLockPage: React.FunctionComponent<IProps> = (props) => {
let dispatch = useAppDispatch();
const configStatus = useAppSelector(ConfigSlice.XDAConfigStatus);
const config = useAppSelector(ConfigSlice.XDAConfig);
Expand All @@ -46,24 +46,24 @@ const EnterpriseEditionLockPage: React.FunctionComponent<IProps> = (props) => {
return (
<div className={"container-fluid d-flex h-100 flex-column"}>
{ configStatus === 'loading' ? <LoadingScreen Show={true} /> :
<div className="col" style={{ height: "100%", width: "100%" }}>
<div className="col" style={{ height: "100%", width: "100%" }}>
<div className="row" style={{ width: "100%", height: "45%", minHeight: "200px", paddingBottom: "50px" }}>
<img src={`${homePath}Images/GiantLogo.png`} className="contain"
<img src={`${homePath}Images/GiantLogo.png`} className="contain"
style={{ height: "100%", marginLeft: "auto", marginRight: "auto" }} />
</div>
</div>
<div className="row" style={{ justifyContent: "center", width: "100%", paddingBottom: "50px" }}>
<ServerErrorIcon Show={true} Label={`${props.EditionRequirement ?? 'Enterprise'} Edition is required to use this feature.`} Size={75} />
</div>
</div>
<div className="row" style={{ justifyContent: "center", width: "100%", fontSize: '2em' }}>
<p style={{ width: "50%", whiteSpace: "preserve-spaces", textAlign: "center" }}>
Click <a href="mailto:[email protected]">here</a> if you believe you are receiving this message in error or would like to inquire about openXDA {props.EditionRequirement ?? 'Enterprise'} Edition.
</p>
</div>
</div>
}
</div>
}
</div>
)
}

export default EnterpriseEditionLockPage;
export default EditionLockPage;

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { GenericController, Modal } from '@gpa-gemstone/react-interactive';
import { CrossMark } from '@gpa-gemstone/gpa-symbols';
import { RemoteXDAInstanceForm, BlankRemoteXDAInstance } from './RemoteXDAInstanceForm';
import GenericByPage from '../CommonComponents/GenericByPage';
import EnterpriseEditionLockPage from '../CommonComponents/EnterpriseEditionLockPage';
import EditionLockPage from '../CommonComponents/EditionLockPage';
import { SystemCenter } from '../global';

declare var homePath: string;
Expand All @@ -53,7 +53,7 @@ const RemoteXDAInstanceMain: Application.Types.iByComponent = (props) => {
}

return (
<EnterpriseEditionLockPage>
<EditionLockPage>
<GenericByPage<OpenXDA.Types.RemoteXDAInstance>
ControllerPath={controllerPath}
RefreshData={refreshCount}
Expand Down Expand Up @@ -104,7 +104,7 @@ const RemoteXDAInstanceMain: Application.Types.iByComponent = (props) => {
{ /* Portal endpoint for inner modal for new remote instance connection */}
<div id='userModal' />
</GenericByPage>
</EnterpriseEditionLockPage>
</EditionLockPage>
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import * as _ from 'lodash';
import moment from 'moment';
import { useAppDispatch, useAppSelector } from '../hooks';
import { ApplicationNodeSlice } from '../Store/Store';
import EnterpriseEditionLockPage from '../CommonComponents/EnterpriseEditionLockPage';
import EditionLockPage from '../CommonComponents/EditionLockPage';

interface Aggregate {
Date: string,
Expand Down Expand Up @@ -172,7 +172,7 @@ const UserStatistics: Application.Types.iByComponent = (props) => {
}

return (
<EnterpriseEditionLockPage>
<EditionLockPage>
<LoadingScreen Show={tableStatus === 'loading' || plotStatus === 'loading' || applicationNodeStatus === 'loading'} />
<div className="row">
<div className="col">
Expand Down Expand Up @@ -271,7 +271,7 @@ const UserStatistics: Application.Types.iByComponent = (props) => {
</Table>
</div>
</div>
</EnterpriseEditionLockPage>
</EditionLockPage>
)

}
Expand Down

0 comments on commit f02380a

Please sign in to comment.