Skip to content

Commit

Permalink
remove upgrade and maintenance window settings (#614)
Browse files Browse the repository at this point in the history
* remove upgrade and maintenance window settings

* remove unused vars

* remove unused code

* version bump
  • Loading branch information
pb82 authored Sep 8, 2020
1 parent e1b396c commit f44f493
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 961 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "integreatly-web-app",
"version": "2.27.3",
"version": "2.28.0",
"private": true,
"proxy": "http://localhost:5001/",
"dependencies": {
"@fortawesome/fontawesome-free": "5.7.2",
"@patternfly/patternfly": "4.23.3",
"@patternfly/react-core": "4.32.1",
"@patternfly/react-icons": "4.5.0",
"@patternfly/react-styles" :"4.5.0",
"@patternfly/react-styles": "4.5.0",
"@rh-uxd/appservices-patternfly-core": "1.0.5",
"asciidoctor.js": "1.5.7",
"axios": "^0.19.0",
Expand Down
44 changes: 2 additions & 42 deletions src/pages/landing/landingPage.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import {
Alert,
AlertActionCloseButton,
Grid,
GridItem,
Page,
PageSection,
PageSectionVariants,
Tabs,
Tab,
TabContent
} from '@patternfly/react-core';
import { Grid, GridItem, Page, PageSection, PageSectionVariants, Tabs, Tab, TabContent } from '@patternfly/react-core';
import { noop } from '../../common/helpers';
import TutorialDashboard from '../../components/tutorialDashboard/tutorialDashboard';
import InstalledAppsView from '../../components/installedAppsView/InstalledAppsView';
Expand All @@ -34,8 +23,7 @@ class LandingPage extends React.Component {
this.handleLoad = this.handleLoad.bind(this);
this.state = {
activeTabKey: 0,
currentUserName: null,
showInfoAlert: true
currentUserName: null
};

// Toggle currently active tab
Expand All @@ -45,11 +33,6 @@ class LandingPage extends React.Component {
activeTabKey: tabIndex
});
};

this.onAlertClose = () => {
window.localStorage.setItem('showInfoAlert', 'false');
this.setState({ showInfoAlert: false });
};
}

componentDidMount() {
Expand Down Expand Up @@ -100,38 +83,15 @@ class LandingPage extends React.Component {

render() {
const { walkthroughServices, middlewareServices, user } = this.props;
const { showInfoAlert } = this.state;
const launchFn = isOpenShift4() ? this.handleServiceLaunchV4.bind(this) : this.handleServiceLaunch.bind(this);
const openshiftHost = getOpenshiftHost(middlewareServices);
this.contentRef1 = React.createRef();
this.contentRef2 = React.createRef();

// show settings alert on first render
if (window.localStorage.getItem('showInfoAlert') === null) window.localStorage.setItem('showInfoAlert', true);

const isAlertOpen = window.localStorage.getItem('showInfoAlert') === 'true';

return (
<Page className="pf-u-h-100vh" onLoad={this.handleLoad}>
<RoutedConnectedMasthead currentUserName={this.state.currentUserName} />
<PageSection variant={PageSectionVariants.light} className="pf-u-py-0 pf-u-pl-lg pf-u-pr-0">
{showInfoAlert &&
isAlertOpen && (
<Alert
className="info-alert"
variant="info"
isInline
title="Managed Integration Schedule Available"
actionClose={<AlertActionCloseButton onClose={this.onAlertClose} />}
>
<p>
You can now schedule your daily backups, weekly maintenance window, and Managed Integration upgrades
from the Settings page. Review the default settings to ensure they are appropriate for your cluster.
</p>
<br />
<a href="/settings">Go to settings</a>
</Alert>
)}
<h1 className="pf-c-title pf-m-4xl pf-c-landing__heading">Welcome to the Solution Explorer</h1>
<p className="pf-c-landing__content">
Quickly access consoles for all your Red Hat managed services, and learn how to easily implement
Expand Down
Loading

0 comments on commit f44f493

Please sign in to comment.