diff --git a/Dashboard/src/Pages/StatusPages/View/NavBarStyle.tsx b/Dashboard/src/Pages/StatusPages/View/NavBarStyle.tsx index 7c1a432f5d..3037a8d999 100644 --- a/Dashboard/src/Pages/StatusPages/View/NavBarStyle.tsx +++ b/Dashboard/src/Pages/StatusPages/View/NavBarStyle.tsx @@ -160,14 +160,14 @@ const StatusPageDelete: FunctionComponent = ( fieldType: FormFieldSchemaType.Checkbox, required: false, }, - { - field: { - showRssPage: true, - }, - title: 'Enable RSS Page', - fieldType: FormFieldSchemaType.Checkbox, - required: false, - }, + // { + // field: { + // showRssPage: true, + // }, + // title: 'Enable RSS Page', + // fieldType: FormFieldSchemaType.Checkbox, + // required: false, + // }, ]} modelDetailProps={{ showDetailsInNumberOfColumns: 1, @@ -209,13 +209,13 @@ const StatusPageDelete: FunctionComponent = ( fieldType: FieldType.Boolean, title: 'Enable Subscribers', }, - { - field: { - showRssPage: true, - }, - fieldType: FieldType.Boolean, - title: 'Enable RSS', - }, + // { + // field: { + // showRssPage: true, + // }, + // fieldType: FieldType.Boolean, + // title: 'Enable RSS', + // }, ], modelId: modelId, }} diff --git a/StatusPage/src/App.tsx b/StatusPage/src/App.tsx index b19b5af36f..dc78b36e86 100644 --- a/StatusPage/src/App.tsx +++ b/StatusPage/src/App.tsx @@ -55,7 +55,8 @@ const App: FunctionComponent = () => { const onPageLoadComplete: Function = (): void => { if (javascript) { - eval(javascript); + // run custom javascipt. + new Function(javascript)(); } }; diff --git a/StatusPage/src/Components/MasterPage/MasterPage.tsx b/StatusPage/src/Components/MasterPage/MasterPage.tsx index 29a9f5a735..071f631627 100644 --- a/StatusPage/src/Components/MasterPage/MasterPage.tsx +++ b/StatusPage/src/Components/MasterPage/MasterPage.tsx @@ -202,7 +202,7 @@ const DashboardMasterPage: FunctionComponent = ( className=" m-auto" makeTopSectionUnstick={true} topSectionClassName="shadow p-1 bg-white rounded mb-5 flex justify-center" - hideHeader={!logo && links.length === 0} + hideHeader={!headerHtml && !logo && links.length === 0} footer={ !footerHtml ? (