From 876e896243f23e5e5b3207ef8a39a5369222a418 Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Fri, 10 Apr 2020 18:58:14 +0100 Subject: [PATCH 1/2] Small bugifxes --- changelog.json | 8 +++++++- public/js/app.js | 16 +++++++++------- resources/js/components/Home/Version.js | 17 ++++++++++------- 3 files changed, 26 insertions(+), 15 deletions(-) diff --git a/changelog.json b/changelog.json index dbe20fb4..43e0492c 100644 --- a/changelog.json +++ b/changelog.json @@ -1,8 +1,14 @@ { + "1.2.1": [ + { + "description": "Fixed issue where changelog entry with a link wouldn't show.", + "link": "" + } + ], "1.2.0": [ { "description": "Added an updating mechainism within the app to keep code up to date.", - "link": "" + "link": "https://github.com/henrywhitaker3/Speedtest-Tracker/commit/710a770d40e59e1b985053c5a7c9f43580132570?diff=unified" } ], "1.1.0": [ diff --git a/public/js/app.js b/public/js/app.js index 99cf6633..79840d20 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -127928,14 +127928,16 @@ var Version = /*#__PURE__*/function (_Component) { react_toastify__WEBPACK_IMPORTED_MODULE_3__["toast"].info('Applying update'); axios__WEBPACK_IMPORTED_MODULE_2___default.a.get('/api/update/move').then(function (resp) { - _this.setState({ - updateProgress: 100 - }); + axios__WEBPACK_IMPORTED_MODULE_2___default.a.get('/api/update/move').then(function (resp) { + _this.setState({ + updateProgress: 100 + }); - react_toastify__WEBPACK_IMPORTED_MODULE_3__["toast"].success('Update successful. Refreshing your page...'); - setTimeout(function () { - location.reload(true); - }, 5000); + react_toastify__WEBPACK_IMPORTED_MODULE_3__["toast"].success('Update successful. Refreshing your page...'); + setTimeout(function () { + location.reload(true); + }, 5000); + }); }); }); })["catch"](function (err) { diff --git a/resources/js/components/Home/Version.js b/resources/js/components/Home/Version.js index 8ea1e224..2665540b 100644 --- a/resources/js/components/Home/Version.js +++ b/resources/js/components/Home/Version.js @@ -74,13 +74,16 @@ export default class Version extends Component { toast.info('Applying update'); Axios.get('/api/update/move') .then((resp) => { - this.setState({ - updateProgress: 100, - }); - toast.success('Update successful. Refreshing your page...'); - setTimeout(function() { - location.reload(true); - }, 5000); + Axios.get('/api/update/move') + .then((resp) => { + this.setState({ + updateProgress: 100, + }); + toast.success('Update successful. Refreshing your page...'); + setTimeout(function() { + location.reload(true); + }, 5000); + }) }) }) }) From 32f2937b0bbace4794634f14bb8d59cf884c398e Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Fri, 10 Apr 2020 18:59:22 +0100 Subject: [PATCH 2/2] Updated config version # --- config/speedtest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/speedtest.php b/config/speedtest.php index b1e89675..ac20a459 100644 --- a/config/speedtest.php +++ b/config/speedtest.php @@ -7,7 +7,7 @@ return [ |-------------------------------------------------------------------------- */ - 'version' => '1.2.0', + 'version' => '1.2.1', /* |--------------------------------------------------------------------------