Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
c8e4b9c6
Commit
c8e4b9c6
authored
8 years ago
by
Eugen Rochko
Browse files
Options
Downloads
Patches
Plain Diff
No loading bars for cards, no failure if it 404s (that's expected)
parent
f0de621e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/assets/javascripts/components/actions/cards.jsx
+11
-3
11 additions, 3 deletions
app/assets/javascripts/components/actions/cards.jsx
with
11 additions
and
3 deletions
app/assets/javascripts/components/actions/cards.jsx
+
11
−
3
View file @
c8e4b9c6
...
...
@@ -11,6 +11,11 @@ export function fetchStatusCard(id) {
api
(
getState
).
get
(
`/api/v1/statuses/
${
id
}
/card`
).
then
(
response
=>
{
dispatch
(
fetchStatusCardSuccess
(
id
,
response
.
data
));
}).
catch
(
error
=>
{
if
(
error
.
response
.
status
===
404
)
{
// This is fine
return
;
}
dispatch
(
fetchStatusCardFail
(
id
,
error
));
});
};
...
...
@@ -19,7 +24,8 @@ export function fetchStatusCard(id) {
export
function
fetchStatusCardRequest
(
id
)
{
return
{
type
:
STATUS_CARD_FETCH_REQUEST
,
id
id
,
skipLoading
:
true
};
};
...
...
@@ -27,7 +33,8 @@ export function fetchStatusCardSuccess(id, card) {
return
{
type
:
STATUS_CARD_FETCH_SUCCESS
,
id
,
card
card
,
skipLoading
:
true
};
};
...
...
@@ -35,6 +42,7 @@ export function fetchStatusCardFail(id, error) {
return
{
type
:
STATUS_CARD_FETCH_FAIL
,
id
,
error
error
,
skipLoading
:
true
};
};
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