Skip to content

Commit f44f493

Browse files
authored
remove upgrade and maintenance window settings (#614)
* remove upgrade and maintenance window settings * remove unused vars * remove unused code * version bump
1 parent e1b396c commit f44f493

File tree

3 files changed

+12
-961
lines changed

3 files changed

+12
-961
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "integreatly-web-app",
3-
"version": "2.27.3",
3+
"version": "2.28.0",
44
"private": true,
55
"proxy": "http://localhost:5001/",
66
"dependencies": {
77
"@fortawesome/fontawesome-free": "5.7.2",
88
"@patternfly/patternfly": "4.23.3",
99
"@patternfly/react-core": "4.32.1",
1010
"@patternfly/react-icons": "4.5.0",
11-
"@patternfly/react-styles" :"4.5.0",
11+
"@patternfly/react-styles": "4.5.0",
1212
"@rh-uxd/appservices-patternfly-core": "1.0.5",
1313
"asciidoctor.js": "1.5.7",
1414
"axios": "^0.19.0",

src/pages/landing/landingPage.js

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
import * as React from 'react';
22
import PropTypes from 'prop-types';
3-
import {
4-
Alert,
5-
AlertActionCloseButton,
6-
Grid,
7-
GridItem,
8-
Page,
9-
PageSection,
10-
PageSectionVariants,
11-
Tabs,
12-
Tab,
13-
TabContent
14-
} from '@patternfly/react-core';
3+
import { Grid, GridItem, Page, PageSection, PageSectionVariants, Tabs, Tab, TabContent } from '@patternfly/react-core';
154
import { noop } from '../../common/helpers';
165
import TutorialDashboard from '../../components/tutorialDashboard/tutorialDashboard';
176
import InstalledAppsView from '../../components/installedAppsView/InstalledAppsView';
@@ -34,8 +23,7 @@ class LandingPage extends React.Component {
3423
this.handleLoad = this.handleLoad.bind(this);
3524
this.state = {
3625
activeTabKey: 0,
37-
currentUserName: null,
38-
showInfoAlert: true
26+
currentUserName: null
3927
};
4028

4129
// Toggle currently active tab
@@ -45,11 +33,6 @@ class LandingPage extends React.Component {
4533
activeTabKey: tabIndex
4634
});
4735
};
48-
49-
this.onAlertClose = () => {
50-
window.localStorage.setItem('showInfoAlert', 'false');
51-
this.setState({ showInfoAlert: false });
52-
};
5336
}
5437

5538
componentDidMount() {
@@ -100,38 +83,15 @@ class LandingPage extends React.Component {
10083

10184
render() {
10285
const { walkthroughServices, middlewareServices, user } = this.props;
103-
const { showInfoAlert } = this.state;
10486
const launchFn = isOpenShift4() ? this.handleServiceLaunchV4.bind(this) : this.handleServiceLaunch.bind(this);
10587
const openshiftHost = getOpenshiftHost(middlewareServices);
10688
this.contentRef1 = React.createRef();
10789
this.contentRef2 = React.createRef();
10890

109-
// show settings alert on first render
110-
if (window.localStorage.getItem('showInfoAlert') === null) window.localStorage.setItem('showInfoAlert', true);
111-
112-
const isAlertOpen = window.localStorage.getItem('showInfoAlert') === 'true';
113-
11491
return (
11592
<Page className="pf-u-h-100vh" onLoad={this.handleLoad}>
11693
<RoutedConnectedMasthead currentUserName={this.state.currentUserName} />
11794
<PageSection variant={PageSectionVariants.light} className="pf-u-py-0 pf-u-pl-lg pf-u-pr-0">
118-
{showInfoAlert &&
119-
isAlertOpen && (
120-
<Alert
121-
className="info-alert"
122-
variant="info"
123-
isInline
124-
title="Managed Integration Schedule Available"
125-
actionClose={<AlertActionCloseButton onClose={this.onAlertClose} />}
126-
>
127-
<p>
128-
You can now schedule your daily backups, weekly maintenance window, and Managed Integration upgrades
129-
from the Settings page. Review the default settings to ensure they are appropriate for your cluster.
130-
</p>
131-
<br />
132-
<a href="/settings">Go to settings</a>
133-
</Alert>
134-
)}
13595
<h1 className="pf-c-title pf-m-4xl pf-c-landing__heading">Welcome to the Solution Explorer</h1>
13696
<p className="pf-c-landing__content">
13797
Quickly access consoles for all your Red Hat managed services, and learn how to easily implement

0 commit comments

Comments
 (0)