Commit 7e670000 authored by Denys Mishunov's avatar Denys Mishunov

Hid re-named entries in subfolders

parent 9ae25ed1
......@@ -131,7 +131,7 @@ export default {
</script>
<template>
<div>
<div v-if="!file.moved">
<file-header v-if="file.isHeader" :path="file.path" />
<div
v-else
......
......@@ -90,6 +90,19 @@ describe('File row component', () => {
expect(vm.$el.querySelector('.js-file-row-header')).not.toBe(null);
});
it('is not rendered for `moved` entries in subfolders', () => {
createComponent({
file: {
path: 't5',
moved: true,
tree: [],
},
level: 2,
});
expect(vm.$el.nodeType).not.toEqual(1);
});
describe('new dropdown', () => {
beforeEach(() => {
createComponent({
......
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