Skip to content

Commit

Permalink
Add update button (#4809)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamakase authored Jul 19, 2021
1 parent 8ff37a2 commit b8e40bc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
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

0 comments on commit b8e40bc

Please sign in to comment.