Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kus-admin
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
Иван Кубота
kus-admin
Commits
daa88dcf
Commit
daa88dcf
authored
Jan 31, 2020
by
talequale
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
200d93f7
7fa5a823
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
MainController.jsx
src/controller/MainController.jsx
+1
-1
Ajax.jsx
src/core/Ajax.jsx
+6
-7
No files found.
src/controller/MainController.jsx
View file @
daa88dcf
...
...
@@ -18,7 +18,7 @@ store.sub(['navigation.current', 'loaded.cards'], async function(page, loaded) {
const
result
=
await
AsyncAuthAjax
.
get
(
API
.
ENDPOINTS
.
GET_USER_NEW_CARDS
()
);
result
.
forEach
(
function
(
card
)
{
cards
.
set
(
card
.
id
+
''
,
{...
card
,
seen
:
false
})
cards
.
set
(
card
.
id
+
''
,
Object
.
assign
({},
card
,
{
seen
:
false
}));
});
store
.
set
(
'loaded.cards'
,
true
);
...
...
src/core/Ajax.jsx
View file @
daa88dcf
const
transformCfg
=
function
(
cfg
)
{
return
{
...
cfg
,
headers
:
{
'Content-Type'
:
'application/json'
,
...(
cfg
&&
cfg
.
headers
||
{})
}
}
return
Object
.
assign
({},
cfg
,
{
headers
:
Object
.
assign
(
{
'Content-Type'
:
'application/json'
},
cfg
&&
cfg
.
headers
||
{}
)
});
};
const
xhrProceed
=
function
(
method
,
xhr
,
cfg
,
cb
)
{
xhr
.
open
(
method
,
cfg
.
url
,
true
);
...
...
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