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 {
<template>
<div class="diff-content">
<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
v-if="isInlineView"
:diff-file="diffFile"
......
......@@ -176,7 +176,6 @@ 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>
......
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