diff options
author | Natalia Tepluhina <ntepluhina@gitlab.com> | 2019-02-15 17:56:50 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-02-15 17:56:50 +0000 |
commit | bf8f32da7ffc0c8490e1920152fd1dfd214747ba (patch) | |
tree | ba550b0c4cc67cd6d09211c14ed6f5c9befbb40f /app/assets/javascripts/ide/constants.js | |
parent | 8f209ed5eac176fde0272ced69e36467e37fe79a (diff) | |
download | gitlab-ce-bf8f32da7ffc0c8490e1920152fd1dfd214747ba.tar.gz |
Replaced part of diff file properties with diff viewer
- replaced file.too_large
- replaced file.text
- replaced file.collapsed
Diffstat (limited to 'app/assets/javascripts/ide/constants.js')
-rw-r--r-- | app/assets/javascripts/ide/constants.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/constants.js b/app/assets/javascripts/ide/constants.js index 804ebae4555..7c560c89695 100644 --- a/app/assets/javascripts/ide/constants.js +++ b/app/assets/javascripts/ide/constants.js @@ -24,6 +24,22 @@ export const diffModes = { mode_changed: 'mode_changed', }; +export const diffViewerModes = Object.freeze({ + not_diffable: 'not_diffable', + no_preview: 'no_preview', + added: 'added', + deleted: 'deleted', + renamed: 'renamed', + mode_changed: 'mode_changed', + text: 'text', + image: 'image', +}); + +export const diffViewerErrors = Object.freeze({ + too_large: 'too_large', + stored_externally: 'server_side_but_stored_externally', +}); + export const rightSidebarViews = { pipelines: { name: 'pipelines-list', keepAlive: true }, jobsDetail: { name: 'jobs-detail', keepAlive: false }, |