diff options
author | Sean Nichols <git@seanich.com> | 2018-12-08 08:50:56 +0300 |
---|---|---|
committer | Sean Nichols <git@seanich.com> | 2018-12-12 07:49:04 +0300 |
commit | 05dcb2dd76f2a9890398543f6de1516f5ec0b379 (patch) | |
tree | cfa2a54519a7255e97a1d56d091dd780828d7e4a /app/assets | |
parent | e7a6b841684f9a2929b16176b223ea44bfc26332 (diff) |
Display empty files properly on MR diffs
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/diffs/components/diff_file.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/diffs/components/diff_file.vue b/app/assets/javascripts/diffs/components/diff_file.vue index bed29efb253..d397ffbefe3 100644 --- a/app/assets/javascripts/diffs/components/diff_file.vue +++ b/app/assets/javascripts/diffs/components/diff_file.vue @@ -176,6 +176,9 @@ export default { {{ __('This source diff could not be displayed because it is too large.') }} <span v-html="viewBlobLink"></span> </div> + <div v-if="file.empty" class="nothing-here-block"> + {{ __('Empty file') }} + </div> </div> </template> |