gitlab-org--gitlab-foss/app/assets/javascripts/diffs/components/hidden_files_warning.vue

40 lines
844 B
Vue
Raw Normal View History

2018-06-21 08:22:40 -04:00
<script>
/* eslint-disable @gitlab/vue-require-i18n-strings */
2018-06-21 08:22:40 -04:00
export default {
props: {
total: {
type: String,
required: true,
},
visible: {
type: Number,
required: true,
},
plainDiffPath: {
type: String,
required: true,
},
emailPatchPath: {
type: String,
required: true,
},
},
};
</script>
<template>
<div class="alert alert-warning">
<h4>
{{ __('Too many changes to show.') }}
<div class="float-right">
2018-11-16 15:07:38 -05:00
<a :href="plainDiffPath" class="btn btn-sm"> {{ __('Plain diff') }} </a>
<a :href="emailPatchPath" class="btn btn-sm"> {{ __('Email patch') }} </a>
2018-06-21 08:22:40 -04:00
</div>
</h4>
<p>
2018-11-16 15:07:38 -05:00
To preserve performance only <strong> {{ visible }} of {{ total }} </strong> files are
displayed.
2018-06-21 08:22:40 -04:00
</p>
</div>
</template>