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

37 lines
1 KiB
Vue
Raw Normal View History

2018-06-21 08:22:40 -04:00
<script>
import { mapState } from 'vuex';
import emptyImage from '~/../../views/shared/icons/_mr_widget_empty_state.svg';
export default {
data() {
return {
emptyImage,
};
},
computed: {
...mapState({
sourceBranch: state => state.notes.noteableData.source_branch,
targetBranch: state => state.notes.noteableData.target_branch,
newBlobPath: state => state.notes.noteableData.new_blob_path,
}),
},
};
</script>
<template>
2018-11-16 15:07:38 -05:00
<div class="row empty-state nothing-here-block">
2018-06-21 08:22:40 -04:00
<div class="col-xs-12">
2018-11-16 15:07:38 -05:00
<div class="svg-content"><span v-html="emptyImage"></span></div>
2018-06-21 08:22:40 -04:00
</div>
<div class="col-xs-12">
<div class="text-content text-center">
2018-11-16 15:07:38 -05:00
No changes between <span class="ref-name">{{ sourceBranch }}</span> and
2018-06-21 08:22:40 -04:00
<span class="ref-name">{{ targetBranch }}</span>
<div class="text-center">
2018-11-16 15:07:38 -05:00
<a :href="newBlobPath" class="btn btn-success"> {{ __('Create commit') }} </a>
2018-06-21 08:22:40 -04:00
</div>
</div>
</div>
</div>
</template>