Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
explorviz-frontend-extension-discovery
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ExplorViz
explorviz-github-archive
explorviz-frontend-extension-discovery
Commits
97a3323b
Verified
Commit
97a3323b
authored
7 years ago
by
Alexander-Krause
Browse files
Options
Downloads
Patches
Plain Diff
error handling fixed
parent
2a276f46
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
addon/components/agent-details.js
+5
-2
5 additions, 2 deletions
addon/components/agent-details.js
addon/components/procezz-details.js
+3
-0
3 additions, 0 deletions
addon/components/procezz-details.js
with
8 additions
and
2 deletions
addon/components/agent-details.js
+
5
−
2
View file @
97a3323b
...
...
@@ -17,16 +17,19 @@ export default Component.extend(AlertifyHandler, {
saveAgent
()
{
const
self
=
this
;
if
(
this
.
get
(
'
procezz
.hasDirtyAttributes
'
)){
if
(
this
.
get
(
'
agent
.hasDirtyAttributes
'
)){
this
.
set
(
'
showSpinner
'
,
true
);
this
.
get
(
''
).
save
().
then
(()
=>
{
this
.
get
(
'
agent
'
).
save
().
then
(()
=>
{
self
.
set
(
'
showSpinner
'
,
false
);
self
.
handleMessageForUser
();
})
.
catch
((
errorObject
)
=>
{
self
.
get
(
'
agent
'
).
rollbackAttributes
();
self
.
set
(
'
agent.errorOccured
'
,
true
);
self
.
set
(
'
agent.errorMessage
'
,
errorObject
);
// closure action from discovery controller
self
.
errorHandling
(
errorObject
);
});
...
...
This diff is collapsed.
Click to expand it.
addon/components/procezz-details.js
+
3
−
0
View file @
97a3323b
...
...
@@ -35,6 +35,9 @@ export default Component.extend(AlertifyHandler, {
self
.
get
(
'
procezz
'
).
rollbackAttributes
();
self
.
set
(
'
procezz.errorOccured
'
,
true
);
self
.
set
(
'
procezz.errorMessage
'
,
errorObject
);
// closure action from discovery controller
self
.
errorHandling
(
errorObject
);
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment