gitlab-org--gitlab-foss/app/assets/javascripts
Fatih Acet 6d12878d5a Merge branch '19161-non-helpful-flash-message-when-attaching-file-fails' into 'master'
Hacked in a better message for attachment network error

## What does this MR do?

Adds a better error message for when a user is uploading an attachment and they cannot reach the GitLab instance.

Now displays `Network error. Please check your connection.`.

## Are there points in the code the reviewer needs to double check?

As noted above, I think this is hacky, ideally this would be sent straight from the backend but if not then this should be handled globally?

/cc @fatihacet 

## Why was this MR needed?

Attachment upload UX

## What are the relevant issue numbers?

Closes #19161.

## Screenshots (if relevant)

*UPDATED:*

![Screen_Shot_2016-06-30_at_00.42.37](/uploads/b3b4044782dd4c4c17735e99acc45502/Screen_Shot_2016-06-30_at_00.42.37.png)

## Does this MR meet the acceptance criteria?

- [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [ ] API support added
- Tests
  - [ ] Added for this feature/bug
  - [ ] All builds are passing
- [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [ ] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !4977
2016-07-05 21:51:00 +00:00
..
behaviors
blob Apply selected value as label 2016-06-23 12:13:09 -05:00
ci Displays time remaining relative to now 2016-06-13 11:08:15 +01:00
commit
extensions
graphs Re-implement page-specific JS in a better way. 2016-06-23 10:33:38 -06:00
lib Fixed markdown buttons in FF 2016-07-05 11:54:49 +01:00
network Reorganize the lib directory. 2016-06-23 10:55:40 -06:00
u2f Implement authentication (login) using a U2F device. 2016-06-06 12:50:31 +05:30
users Re-implement page-specific JS in a better way. 2016-06-23 10:33:38 -06:00
activities.js.coffee Update method name for better understanding 2016-06-09 14:38:24 -05:00
admin.js.coffee
api.js.coffee Incorporate review 2016-06-20 14:48:28 -05:00
application.js.coffee Updated breakpoint for sidebar pinning 2016-06-30 16:15:32 +01:00
aside.js.coffee
autosave.js.coffee
awards_handler.coffee Made the search bar on emoji menu sticky 2016-06-20 14:01:09 +01:00
breakpoints.coffee
broadcast_message.js.coffee
build_artifacts.js.coffee
commit.js.coffee
commits.js.coffee
compare.js.coffee
confirm_danger_modal.js.coffee
copy_to_clipboard.js.coffee
diff.js.coffee
dispatcher.js.coffee merge master into issue_3359_3 2016-06-29 11:04:18 -03:00
dropzone_input.js.coffee _Hacked_ in a better error message 2016-06-30 14:49:56 +01:00
due_date_select.js.coffee Merge branch 'milestone-date-clear' into 'master' 2016-06-15 20:52:09 +00:00
flash.js.coffee Align flash messages with left side of page content (!4959) 2016-06-29 16:22:41 +02:00
gfm_auto_complete.js.coffee Cache autocomplete results 2016-07-01 15:03:36 +01:00
gl_crop.js.coffee
gl_dropdown.js.coffee Merge branch 'search-input-blur' into 'master' 2016-06-29 19:22:08 +00:00
gl_form.js.coffee Made markdown buttons work on all markdown textareas 2016-06-17 11:52:22 +01:00
group_avatar.js.coffee
groups.js.coffee
groups_select.js.coffee
importer_status.js.coffee Cache results from jQuery selectors to retrieve namespace name 2016-07-01 16:43:11 -03:00
issuable.js.coffee Fix unescaped strings in Underscore templates. 2016-06-29 15:59:30 -06:00
issuable_context.js.coffee
issuable_form.js.coffee Fixed issue with move dropdown not being searchable 2016-06-15 08:53:11 +01:00
issue.js.coffee Fix check for existence of new branch button (!4630) 2016-06-27 17:59:50 +02:00
issue_status_select.js.coffee Update dropdown text accordingly to selected item 2016-06-17 19:30:06 -05:00
issues-bulk-assignment.js.coffee Use instance property to enable/disable label assignment 2016-06-23 16:13:42 -05:00
LabelManager.js.coffee Hide tooltip manually 2016-06-16 12:53:21 -05:00
labels.js.coffee
labels_select.js.coffee Fix unescaped strings in Underscore templates. 2016-06-29 15:59:30 -06:00
layout_nav.js.coffee Move fade out divs outside of scrolling container on project view 2016-06-23 17:45:22 -04:00
line_highlighter.js.coffee
logo.js.coffee Fix #18604, logo in header wasn't an anchor link. 2016-06-14 15:57:46 -06:00
markdown_preview.js.coffee
merge_request.js.coffee Avoid a TypeError when initializing MergeRequest JS class with no arg 2016-06-15 10:33:36 +02:00
merge_request_tabs.js.coffee Fixed issue when opening a highlighted line diff 2016-06-10 17:04:54 +01:00
merge_request_widget.js.coffee
merged_buttons.js.coffee Fixed issue with MR buttons being in a group 2016-06-13 11:46:53 +01:00
milestone.js.coffee Add specs and improve coffescript sortable binding function 2016-06-24 15:24:59 -03:00
milestone_select.js.coffee Fix unescaped strings in Underscore templates. 2016-06-29 15:59:30 -06:00
namespace_select.js.coffee
new_branch_form.js.coffee
new_commit_form.js.coffee
notes.js.coffee restricted note edit shortcut to only up key 2016-06-17 18:45:48 +01:00
notifications_dropdown.js.coffee Fixed issue with notification dropdownn not updating active 2016-06-21 08:35:11 +01:00
notifications_form.js.coffee Re-use notifications dropdown/modal for user profile 2016-06-17 00:17:20 -03:00
pager.js.coffee Fix local timeago on user dashboard 2016-06-09 14:38:24 -05:00
profile.js.coffee Re-use notifications dropdown on user profile 2016-06-16 23:34:21 -03:00
project.js.coffee Updated to add parentheses 2016-06-22 17:32:06 +01:00
project_avatar.js.coffee
project_find_file.js.coffee
project_fork.js.coffee
project_import.js.coffee
project_members.js.coffee
project_new.js.coffee Allow or not merge MR with failed build 2016-06-10 14:36:54 +02:00
project_select.js.coffee
project_show.js.coffee
projects_list.js.coffee
protected_branches.js.coffee
right_sidebar.js.coffee Removed update method 2016-06-17 18:31:37 +01:00
search.js.coffee
search_autocomplete.js.coffee Fixed failing search category tests 2016-06-20 12:34:27 +01:00
shortcuts.js.coffee Exposed 'onToggleHelp() to window object so showHelp() can be a global function' 2016-06-29 23:15:36 +01:00
shortcuts_blob.coffee Added ability to skip the Mousetrap binding reset 2016-06-10 17:41:02 +01:00
shortcuts_dashboard_navigation.js.coffee
shortcuts_find_file.js.coffee
shortcuts_issuable.coffee Remove prev/next buttons on issues and merge requests 2016-06-06 12:01:50 -04:00
shortcuts_navigation.coffee
shortcuts_network.js.coffee
sidebar.js.coffee Clicking body closes nav 2016-06-15 18:33:18 +01:00
star.js.coffee Fix project star tooltip on the fly. 2016-06-15 15:14:53 +03:00
subscription.js.coffee Updated subscribe icon 2016-06-09 17:19:14 +01:00
syntax_highlight.coffee
todos.js.coffee
tree.js.coffee Fixes opening files on a new tab with meta key + click or using mouse middle button 2016-06-29 16:49:48 -05:00
user.js.coffee
user_tabs.js.coffee Fix local timeago on user dashboard 2016-06-09 14:38:24 -05:00
users_select.js.coffee Fix unescaped strings in Underscore templates. 2016-06-29 15:59:30 -06:00
wikis.js.coffee
zen_mode.js.coffee