mirror of
https://github.com/getredash/redash.git
synced 2026-03-23 13:00:10 -04:00
* Introduce Link component * Use Link component for external links as well * Remove unused file (I hope it's really not needed) * Use Link component in visualizations library * Simplify Link component implementation * CR1 * Trigger build * CR2
25 lines
852 B
JavaScript
25 lines
852 B
JavaScript
import React from "react";
|
|
import Link from "@/components/Link";
|
|
import { clientConfig, currentUser } from "@/services/auth";
|
|
import frontendVersion from "@/version.json";
|
|
|
|
export default function VersionInfo() {
|
|
return (
|
|
<React.Fragment>
|
|
<div>
|
|
Version: {clientConfig.version}
|
|
{frontendVersion !== clientConfig.version && ` (${frontendVersion.substring(0, 8)})`}
|
|
</div>
|
|
{clientConfig.newVersionAvailable && currentUser.hasPermission("super_admin") && (
|
|
<div className="m-t-10">
|
|
{/* eslint-disable react/jsx-no-target-blank */}
|
|
<Link href="https://version.redash.io/" className="update-available" target="_blank" rel="noopener">
|
|
Update Available
|
|
<i className="fa fa-external-link m-l-5" />
|
|
</Link>
|
|
</div>
|
|
)}
|
|
</React.Fragment>
|
|
);
|
|
}
|