mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 06:28:27 +01:00
Fixed some bugs
- Didn't add token to URL for settings - Auth collapse wouldn't hide
This commit is contained in:
10907
public/css/app.css
vendored
10907
public/css/app.css
vendored
File diff suppressed because one or more lines are too long
137935
public/js/app.js
vendored
137935
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
@@ -30,6 +30,14 @@ License: MIT
|
|||||||
* Released under the MIT License
|
* Released under the MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* JavaScript Cookie v2.2.1
|
||||||
|
* https://github.com/js-cookie/js-cookie
|
||||||
|
*
|
||||||
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
||||||
|
* Released under the MIT license
|
||||||
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Sizzle CSS Selector Engine v2.3.5
|
* Sizzle CSS Selector Engine v2.3.5
|
||||||
* https://sizzlejs.com/
|
* https://sizzlejs.com/
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default class Authentication extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toggleCollapse = () => {
|
toggleCollapse = () => {
|
||||||
if(this.state.show) {
|
if(this.state.showCollapse) {
|
||||||
this.setState({
|
this.setState({
|
||||||
showCollapse: false
|
showCollapse: false
|
||||||
});
|
});
|
||||||
@@ -27,7 +27,7 @@ export default class Authentication extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toggleModal = () => {
|
toggleModal = () => {
|
||||||
if(this.state.show) {
|
if(this.state.showModal) {
|
||||||
this.setState({
|
this.setState({
|
||||||
showModal: false
|
showModal: false
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -57,6 +57,9 @@ export default class ResetPassword extends Component {
|
|||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
toast.success('Password updated');
|
toast.success('Password updated');
|
||||||
this.toggleModal();
|
this.toggleModal();
|
||||||
|
if(this.state.logoutDevices == true) {
|
||||||
|
location.reload(true);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
if(err.response) {
|
if(err.response) {
|
||||||
|
|||||||
2
resources/js/components/Settings/Setting.js
vendored
2
resources/js/components/Settings/Setting.js
vendored
@@ -20,7 +20,7 @@ export default class Setting extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update = () => {
|
update = () => {
|
||||||
var url = 'api/settings';
|
var url = 'api/settings?token=' + window.token;
|
||||||
var data = {
|
var data = {
|
||||||
name: this.state.name,
|
name: this.state.name,
|
||||||
value: this.state.value
|
value: this.state.value
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export default class SettingWithModal extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update = () => {
|
update = () => {
|
||||||
var url = 'api/settings/bulk';
|
var url = 'api/settings/bulk?token=' + window.token;
|
||||||
var data = [];
|
var data = [];
|
||||||
var settings = this.state.settings;
|
var settings = this.state.settings;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user