Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update button #4809

Merged
merged 1 commit into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions airbyte-webapp/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ declare global {
type Config = {
ui: {
helpLink: string;
updateLink: string;
slackLink: string;
docsLink: string;
configurationArchiveLink: string;
Expand Down Expand Up @@ -44,6 +45,7 @@ const config: Config = {
ui: {
technicalSupport: `${BASE_DOCS_LINK}/troubleshooting/on-deploying`,
helpLink: "https://airbyte.io/community",
updateLink: "https://docs.airbyte.io/upgrading-airbyte",
slackLink: "https://slack.airbyte.io",
docsLink: "https://docs.airbyte.io",
configurationArchiveLink: `${BASE_DOCS_LINK}/tutorials/upgrading-airbyte`,
Expand Down
1 change: 1 addition & 0 deletions airbyte-webapp/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"sidebar.slack": "Slack",
"sidebar.connections": "Connections",
"sidebar.settings": "Settings",
"sidebar.update": "Update",

"form.continue": "Continue",
"form.yourEmail": "Your email",
Expand Down
16 changes: 8 additions & 8 deletions airbyte-webapp/src/views/layout/SideBar/SideBar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import styled from "styled-components";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faLifeRing, faBook, faCog } from "@fortawesome/free-solid-svg-icons";
import { faRocket, faBook, faCog } from "@fortawesome/free-solid-svg-icons";
import { faSlack } from "@fortawesome/free-brands-svg-icons";
import { FormattedMessage } from "react-intl";
import { NavLink } from "react-router-dom";
Expand Down Expand Up @@ -161,19 +161,19 @@ const SideBar: React.FC = () => {
</div>
<Menu>
<li>
<MenuLinkItem href={config.ui.slackLink} target="_blank">
{/*@ts-ignore slack icon fails here*/}
<HelpIcon icon={faSlack} />
<MenuLinkItem href={config.ui.updateLink} target="_blank">
<HelpIcon icon={faRocket} />
<Text>
<FormattedMessage id="sidebar.slack" />
<FormattedMessage id="sidebar.update" />
</Text>
</MenuLinkItem>
</li>
<li>
<MenuLinkItem href={config.ui.helpLink} target="_blank">
<HelpIcon icon={faLifeRing} />
<MenuLinkItem href={config.ui.slackLink} target="_blank">
{/*@ts-ignore slack icon fails here*/}
<HelpIcon icon={faSlack} />
<Text>
<FormattedMessage id="sidebar.help" />
<FormattedMessage id="sidebar.slack" />
</Text>
</MenuLinkItem>
</li>
Expand Down