Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
netvs-core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
71
Issues
71
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scc-net
netvs
netvs-core
Commits
dda4daf6
Commit
dda4daf6
authored
Nov 19, 2020
by
Janis Streib
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: more abstraction
parent
0b8f220e
Pipeline
#118667
passed with stages
in 8 minutes and 46 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
frontend/src/App.vue
frontend/src/App.vue
+6
-1
frontend/src/main.js
frontend/src/main.js
+1
-5
No files found.
frontend/src/App.vue
View file @
dda4daf6
...
...
@@ -85,7 +85,12 @@ export default {
EventBus
.
$on
(
'
error
'
,
(
payload
)
=>
{
window
.
console
.
debug
(
'
evbus trigger
'
)
window
.
console
.
debug
(
payload
)
self
.
global_error
=
JSON
.
stringify
(
payload
,
null
,
4
)
if
(
'
response
'
in
payload
)
{
self
.
global_error
=
payload
.
response
.
data
}
else
{
self
.
global_error
=
payload
}
self
.
global_error
=
JSON
.
stringify
(
self
.
global_error
,
null
,
4
)
this
.
$bvModal
.
show
(
'
net-suite-error
'
)
})
}
...
...
frontend/src/main.js
View file @
dda4daf6
...
...
@@ -307,11 +307,7 @@ async function init() {
}
window
.
addEventListener
(
'
unhandledrejection
'
,
function
(
event
)
{
window
.
console
.
debug
(
'
unhanldedrejection handler triggered
'
)
if
(
'
response
'
in
event
.
reason
)
{
EventBus
.
$emit
(
'
error
'
,
event
.
reason
.
response
.
data
)
}
else
{
EventBus
.
$emit
(
'
error
'
,
event
.
reason
)
}
EventBus
.
$emit
(
'
error
'
,
event
.
reason
)
})
Axios
.
interceptors
.
response
.
use
(
function
(
response
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment