Commit 4ae1591b authored by Sean Nichols's avatar Sean Nichols

Move empty file message to diff_content component

parent 48d3fff0
...@@ -69,7 +69,8 @@ export default { ...@@ -69,7 +69,8 @@ export default {
<template> <template>
<div class="diff-content"> <div class="diff-content">
<div class="diff-viewer"> <div class="diff-viewer">
<template v-if="isTextFile"> <div v-if="diffFile.empty" class="nothing-here-block">{{ __('Empty file') }}</div>
<template v-else-if="isTextFile">
<inline-diff-view <inline-diff-view
v-if="isInlineView" v-if="isInlineView"
:diff-file="diffFile" :diff-file="diffFile"
......
...@@ -176,7 +176,6 @@ export default { ...@@ -176,7 +176,6 @@ export default {
{{ __('This source diff could not be displayed because it is too large.') }} {{ __('This source diff could not be displayed because it is too large.') }}
<span v-html="viewBlobLink"></span> <span v-html="viewBlobLink"></span>
</div> </div>
<div v-if="file.empty" class="nothing-here-block">{{ __('Empty file') }}</div>
</div> </div>
</template> </template>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment