Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/app.js
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | methods: { | ||||
$('#app').append($(loader)) | $('#app').append($(loader)) | ||||
} | } | ||||
}, | }, | ||||
// Hide "loading" overlay | // Hide "loading" overlay | ||||
stopLoading() { | stopLoading() { | ||||
$('#app > .app-loader').addClass('fadeOut') | $('#app > .app-loader').addClass('fadeOut') | ||||
this.isLoading = false | this.isLoading = false | ||||
}, | }, | ||||
tab(e) { | |||||
e.preventDefault() | |||||
$(e.target).tab('show') | |||||
}, | |||||
errorPage(code, msg) { | errorPage(code, msg) { | ||||
// Until https://github.com/vuejs/vue-router/issues/977 is implemented | // Until https://github.com/vuejs/vue-router/issues/977 is implemented | ||||
// we can't really use router to display error page as it has two side | // we can't really use router to display error page as it has two side | ||||
// effects: it changes the URL and adds the error page to browser history. | // effects: it changes the URL and adds the error page to browser history. | ||||
// For now we'll be replacing current view with error page "manually". | // For now we'll be replacing current view with error page "manually". | ||||
const map = { | const map = { | ||||
400: "Bad request", | 400: "Bad request", | ||||
401: "Unauthorized", | 401: "Unauthorized", | ||||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |