mirror of
https://github.com/getredash/redash.git
synced 2026-03-21 16:00:09 -04:00
* Added screen reader CSS * Added description to external links * Added spinner icon accessibility * Added accessibility to exclamation and big message * Added question and exclamation accessibility * Hide decorative icons * Standardized link design * Added a11y to refresh icons * Added aria-label to anchors and buttons * Added a11y to conditional icons * Added applicable labels to Ant Icons * Changed escape to interpolation * Replaced external links with opens in new tab * Improved Tooltip hosts * Added aria live to temporary elements * Removed mistakenly added redundant helper * Undoes unnecessarily added interpolation * Replaced empty label with hidden * Improved full icon label * Improved display of live regions * Added note * remove unused class * Created unique id * Remove TODOs * Proper action label * Improved feedback for autocomplete toggle * feature: add id hook * refactor: use id hook * standardize white space
25 lines
925 B
JavaScript
25 lines
925 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" aria-hidden="true" />
|
|
<span className="sr-only">(opens in a new tab)</span>
|
|
</Link>
|
|
</div>
|
|
)}
|
|
</React.Fragment>
|
|
);
|
|
}
|