Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/app.js
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | methods: { | ||||
removeLoader(elem) { | removeLoader(elem) { | ||||
$(elem).find('.app-loader').remove() | $(elem).find('.app-loader').remove() | ||||
}, | }, | ||||
startLoading, | startLoading, | ||||
stopLoading, | stopLoading, | ||||
isLoading() { | isLoading() { | ||||
return isLoading > 0 | return isLoading > 0 | ||||
}, | }, | ||||
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 285 Lines • Show Last 20 Lines |