Commit Graph

106 Commits

Author SHA1 Message Date
Stan Hu f6c7e38040 Make it harder to delete issuables accidentally
Previously submitting a DELETE request to an issuable URL would be
enough to destroy it, but this should require human confirmation.  We
now require that the `destroy_confirm` parameter is set to a truthy
value before this can complete.

In addition, we log a Sentry error if a deletion arrived without
confirmation.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/62387
2019-08-29 12:54:19 -07:00
Winnie Hellmann a28c77f2ad Throw error for multiple RecaptchaModal instances 2019-08-21 08:06:50 +00:00
Heinrich Lee Yu 4506434861 Fix conflict warning being incorrectly displayed
Hide warning when update request is in progress
2019-08-12 13:42:20 +08:00
Rajat Jain c23c141e87 Autosave description in epics
When editing an epic, the progress was previously lost due to
lack of localstorage syncing code. This commit adds support for
localstorage sync.
2019-04-16 08:20:37 +00:00
Douwe Maan 838f7e56a4
Remove .wiki and @md-typography mixin in favor of .md and .md-file
Before, the styling for `img:not(.emoji)`` was repeated between
`.md:not(.use-csslab):not(.wiki)` (for comments and the Markdown
preview), `.documentation.wiki` (for help pages), and
`.issuable-details .description .wiki` (for MR and issue descriptions).

In these places, we now simply use `.md`. Wherever we use `.md` but
don't want this image styling (like wikis and blobs), `.md-file` is
added.
2019-03-26 14:29:33 +01:00
Fatih Acet 8bf5e4795d Add fast tasklist support to MR tasklist
Also adds specs and fixes existing specs
2019-02-07 09:28:35 -06:00
Fatih Acet 0e6c08f58b
Simplify and unify Promise mocks in app_spec file 2019-01-30 23:18:22 +01:00
Fatih Acet 69b87a979d
Stop closing issue edit form in error state 2019-01-30 23:18:22 +01:00
Fatih Acet a3a847f862
Address review comments and fix commented spec 2019-01-30 23:18:20 +01:00
Fatih Acet c352e7e162
Some cleanup and improvements on frontent logic 2019-01-30 23:18:20 +01:00
Fatih Acet 992fcf6c87
Add missing specs. 2019-01-30 23:18:19 +01:00
Fatih Acet f00c6db83f
Add new spec for updateStoreState method 2019-01-30 23:18:19 +01:00
Fatih Acet 6243c04e20
Fix failing specs and lint errors. 2019-01-30 23:18:16 +01:00
Fatih Acet f1acd50515
Show error message from backend 2019-01-30 23:18:13 +01:00
Fatih Acet 45eabf921a
Accept lockVersion as a prop and add to store 2019-01-30 23:18:13 +01:00
George Tsiolis 88e8ee0f6c Remove redundant specs for tooltip 2018-11-21 23:11:41 +02:00
Mike Greiling 160157a92b
Prettify remaining files with differences in CE and EE 2018-10-31 14:33:12 -05:00
Mike Greiling 7a3e605350
Resolve eslint violations 2018-10-17 11:18:17 -05:00
Mike Greiling f666026d71
Prettify all spec files 2018-10-17 11:18:17 -05:00
Johann Hubert Sonntagbauer 6f5723a169 enable jasmine/new-line-before-expect 2018-10-17 06:57:29 +02:00
Douglas Barbosa Alexandre cb0f024cd4 Merge branch 'ce-7013-add-epics-close-support' into 'master'
CE port of Adding state to epics

See merge request gitlab-org/gitlab-ce!21771
2018-09-25 13:11:31 +00:00
Jarka Košanová 398921b67c Bacport FE changes from Closing Epics
Backport of js and vue files from closing epics
2018-09-24 22:52:06 +02:00
Dmitriy Zaporozhets 7f8a520f8a Unite green buttons under one css class
Rename btn-new, btn-create and btn-save to btn-success

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-09-19 13:55:48 +03:00
George Tsiolis f1c7ab5165 Replace author_link snake case in specs 2018-07-24 10:53:59 +03:00
gfyoung bce890820f Enable no-restricted-globals in JS files 2018-06-15 15:58:27 +00:00
Mike Greiling 4d828eae20
convert remaining instances of import * to use spyOnDependency 2018-04-23 00:54:20 -05:00
Mike Greiling c1708514f5
move render_gfm into behaviors directory 2018-03-19 23:07:46 -05:00
Mike Greiling f248be7257
require jQuery to be explicitly imported 2018-03-09 15:18:09 -06:00
Rémy Coutable d434c62a83 Move EE-specific JavaScript files to ee/app/assets/javascripts 2018-02-26 19:43:34 +00:00
Winnie Hellmann 0711ebbd72 Use restore() instead of reset() for removing axios MockAdapter 2018-01-23 12:42:02 +01:00
Jacob Schatz 89c3c88e6d Add confirm when navigating away from page with tests. 2018-01-18 07:18:01 -05:00
Phil Hughes ff0f74ac6e
Tidy up main JS file 2018-01-10 11:07:42 +00:00
Eric Eastwood d2e5313ad8 Switch issue_show to Axios 2018-01-02 17:59:04 -06:00
Winnie Hellmann d5d2d7b2e0 Rename recaptcha-dialog to recaptcha-modal 2017-12-12 13:07:03 +01:00
Phil Hughes a5d2732ce9 Merge branch 'master' into 'url-utility-es-module'
# Conflicts:
#   app/assets/javascripts/issue_show/components/app.vue
2017-12-11 11:35:57 +00:00
Luke Bennett 1a3b292d35 Resolve "No feedback when checking on checklist if potential spam was detected" 2017-12-08 12:26:39 +00:00
Phil Hughes e0bbadc2d2
use exported methods instead of gl.utils 2017-12-08 08:54:51 +00:00
Filipa Lacerda 2018039536 Export template selector as ES6 modules 2017-12-06 09:29:59 +00:00
Fatih Acet e74ef3acea Merge branch 'backport-border-inline-edit' into 'master'
Backport - Add border for epic edit button

See merge request gitlab-org/gitlab-ce!15637
2017-11-29 09:43:25 +00:00
Clement Ho 52eac5bb0e Backport epic tasklist 2017-11-29 09:29:06 +00:00
Clement Ho 27d64f5baa Backport border inline edit 2017-11-28 13:14:46 -06:00
Clement Ho c6c493a730 Backport delete epic changes 2017-11-15 17:13:20 -06:00
Clement Ho baf07e914d Add inline edit button to issue_show app 2017-10-17 17:04:33 +00:00
kushalpandya ce884ad308 Remove confidential toggle checkbox and related code as no longer necessary 2017-09-11 09:28:51 +05:30
Eric Eastwood 90c60138db Move "Move to different project" to sidebar
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/34261
2017-09-03 22:03:17 -05:00
Douwe Maan 92edb3edab Merge branch 'master' into issue-discussions-refactor
# Conflicts:
#	app/models/issue.rb
2017-08-31 18:02:19 +02:00
Clement Ho cc81a40dcc Fix invalid attribute used for time-ago-tooltip component 2017-08-30 18:50:06 +00:00
Douwe Maan 9c22974cd1 Rename a few attribute suffixes from `_url` to `_path` 2017-08-17 19:25:56 +02:00
Filipa Lacerda aaa78199c2 Update vue-resource 2017-07-12 14:47:09 +00:00
Mike Greiling d990df7481 refactor TaskList class to ES module syntax 2017-07-06 13:05:58 -05:00