Skip to content

Commit

Permalink
Merge branch 'release/6.0.25'
Browse files Browse the repository at this point in the history
* release/6.0.25:
  fixes #947
  • Loading branch information
austintoddj committed Mar 10, 2021
2 parents 42acf74 + 276d6e9 commit f911f2b
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 107 deletions.
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/app.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/

/*!
* FilePond 4.25.1
* FilePond 4.25.2
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details.
*/
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/js/app.js": "/js/app.js?id=e494ab5415f2d400ab5b",
"/js/app.js": "/js/app.js?id=1f146fac7da574b2b159",
"/css/app.css": "/css/app.css?id=17b9084a51cfbf270aa4"
}
4 changes: 3 additions & 1 deletion resources/js/components/modals/AvatarModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
import FilePondPluginImageExifOrientation from 'filepond-plugin-image-exif-orientation';
import FilePondPluginImagePreview from 'filepond-plugin-image-preview';
import FilePondPluginImageValidateSize from 'filepond-plugin-image-validate-size';
import { store } from '../../store';
const FilePond = vueFilePond(
FilePondPluginFileValidateType,
Expand Down Expand Up @@ -106,7 +107,8 @@ export default {
getServerOptions() {
return {
url: `${this.settings.path}/api/uploads`,
// TODO: This check shouldn't need to be here
url: this.settings.path === '/' ? `/api/uploads` : `${this.settings.path}/api/uploads`,
headers: {
'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').content,
},
Expand Down
1 change: 1 addition & 0 deletions resources/js/mixins/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default {
switch (error.response.status) {
case 401:
case 405:
// TODO: This check needs to be rewritten
if (store.state.settings.path === '/') {
window.location.href = `/logout`;
} else {
Expand Down
204 changes: 102 additions & 102 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit f911f2b

Please sign in to comment.