Merge branch 'master' into css_patch

This commit is contained in:
Baltazar Gomez 2017-10-05 10:39:44 -06:00 committed by GitHub
commit 57b6948212
4 changed files with 28 additions and 10 deletions

View file

@ -13,13 +13,14 @@ Web UI version numbers should always match the corresponding version of LBRY App
*
### Changed
* Updated the daemon from 0.16.1 to [0.16.3](https://github.com/lbryio/lbry/releases/tag/v0.16.3) to improve download performance and download issue detection.
* Changed the File page to make it clearer how to to open the folder for a file.
* Improved tabs styles with a nice animation. (#547)
* Display search bar on discover page instead of title and remove duplicated icon.
* Minor update for themes.
* Updated the daemon from 0.16.1 to [0.16.4](https://github.com/lbryio/lbry/releases/tag/v0.16.4) to improve download performance and download issue detection.
* There is no longer a minimum channel length (#645)
* Changed the File page to make it clearer how to to open the folder for a file
* The upgrade message is now friendlier and includes a link to the release notes.
### Fixed
* Improve layout (and implementation) of the icon panel in file tiles and cards

View file

@ -10,6 +10,7 @@ import { doFetchDaemonSettings } from "actions/settings";
import { doBalanceSubscribe } from "actions/wallet";
import { doAuthenticate } from "actions/user";
import { doFetchFileInfosAndPublishedClaims } from "actions/file_info";
import * as modals from "constants/modal_types";
const { remote, ipcRenderer, shell } = require("electron");
const path = require("path");
@ -96,7 +97,7 @@ export function doDownloadUpgrade() {
dispatch({
type: types.OPEN_MODAL,
data: {
modal: "downloading",
modal: modals.DOWNLOADING,
},
});
};
@ -140,7 +141,7 @@ export function doCheckUpgradeAvailable() {
dispatch({
type: types.OPEN_MODAL,
data: {
modal: "upgrade",
modal: modals.UPGRADE,
},
});
}
@ -166,7 +167,7 @@ export function doAlertError(errorList) {
dispatch({
type: types.OPEN_MODAL,
data: {
modal: "error",
modal: modals.ERROR,
modalProps: { error: errorList },
},
});

View file

@ -4,6 +4,7 @@ import LoadScreen from "../load_screen.js";
import ModalIncompatibleDaemon from "modal/modalIncompatibleDaemon";
import ModalUpgrade from "modal/modalUpgrade";
import ModalDownloading from "modal/modalDownloading";
import * as modals from "constants/modal_types";
export class SplashScreen extends React.PureComponent {
static propTypes = {
@ -111,8 +112,10 @@ export class SplashScreen extends React.PureComponent {
{modal == "incompatibleDaemon" &&
this.state.isRunning &&
<ModalIncompatibleDaemon />}
{modal == "upgrade" && this.state.isRunning && <ModalUpgrade />}
{modal == "downloading" && this.state.isRunning && <ModalDownloading />}
{modal == modals.UPGRADE && this.state.isRunning && <ModalUpgrade />}
{modal == modals.DOWNLOADING &&
this.state.isRunning &&
<ModalDownloading />}
</div>
);
}

View file

@ -1,5 +1,6 @@
import React from "react";
import { Modal } from "modal/modal";
import Link from "component/link";
class ModalUpgrade extends React.PureComponent {
render() {
@ -8,16 +9,28 @@ class ModalUpgrade extends React.PureComponent {
return (
<Modal
isOpen={true}
contentLabel={__("Update available")}
contentLabel={__("Upgrade available")}
type="confirm"
confirmButtonLabel={__("Upgrade")}
abortButtonLabel={__("Skip")}
onConfirmed={downloadUpgrade}
onAborted={skipUpgrade}
>
{__(
"Your version of LBRY is out of date and may be unreliable or insecure."
)}
<h3 className="text-center">{__("LBRY Just Got BTTR")}</h3>
<br />
<p>
{__("An updated version of LBRY is now available.")}
{" "}
{__("Your version is out of date and may be unreliable or insecure.")}
</p>
<p className="meta text-center">
{__("Want to know what has changed?")}
{" "} See the{" "}
<Link
label={__("release notes")}
href="https://github.com/lbryio/lbry-app/releases"
/>.
</p>
</Modal>
);
}