Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
91d2b8ea
Commit
91d2b8ea
authored
5 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3629 : UI: skipDefaultError handler improvement (2 patch)
parent
ec3c6dba
master
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
gruntfile.js
dashboardv2/gruntfile.js
+1
-0
CommonViewFunction.js
dashboardv2/public/js/utils/CommonViewFunction.js
+8
-0
gruntfile.js
dashboardv3/gruntfile.js
+1
-0
CommonViewFunction.js
dashboardv3/public/js/utils/CommonViewFunction.js
+8
-0
No files found.
dashboardv2/gruntfile.js
View file @
91d2b8ea
...
...
@@ -63,6 +63,7 @@ module.exports = function(grunt) {
proxies
:
[{
context
:
'/api'
,
// the context of the data service
host
:
'127.0.0.1'
,
auth
:
"admin:admin"
,
port
:
21000
,
// the port that the data service is running on
https
:
false
}],
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/utils/CommonViewFunction.js
View file @
91d2b8ea
...
...
@@ -884,7 +884,15 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
CommonViewFunction
.
restCsrfCustomHeader
=
header
;
CommonViewFunction
.
restCsrfMethodsToIgnore
=
{};
methods
.
map
(
function
(
method
)
{
CommonViewFunction
.
restCsrfMethodsToIgnore
[
method
]
=
true
;
});
var
statusCodeErrorFn
=
function
(
error
)
{
Utils
.
defaultErrorHandler
(
null
,
error
)
}
Backbone
.
$
.
ajaxSetup
({
statusCode
:
{
401
:
statusCodeErrorFn
,
419
:
statusCodeErrorFn
,
403
:
statusCodeErrorFn
},
beforeSend
:
CommonViewFunction
.
addRestCsrfCustomHeader
});
}
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/gruntfile.js
View file @
91d2b8ea
...
...
@@ -63,6 +63,7 @@ module.exports = function(grunt) {
proxies
:
[{
context
:
'/api'
,
// the context of the data service
host
:
'127.0.0.1'
,
auth
:
"admin:admin"
,
port
:
21000
,
// the port that the data service is running on
https
:
false
}],
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/utils/CommonViewFunction.js
View file @
91d2b8ea
...
...
@@ -904,7 +904,15 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
CommonViewFunction
.
restCsrfCustomHeader
=
header
;
CommonViewFunction
.
restCsrfMethodsToIgnore
=
{};
methods
.
map
(
function
(
method
)
{
CommonViewFunction
.
restCsrfMethodsToIgnore
[
method
]
=
true
;
});
var
statusCodeErrorFn
=
function
(
error
)
{
Utils
.
defaultErrorHandler
(
null
,
error
)
}
Backbone
.
$
.
ajaxSetup
({
statusCode
:
{
401
:
statusCodeErrorFn
,
419
:
statusCodeErrorFn
,
403
:
statusCodeErrorFn
},
beforeSend
:
CommonViewFunction
.
addRestCsrfCustomHeader
});
}
...
...
This diff is collapsed.
Click to expand it.
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