Commit 3fd4c77e authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '63984-rename-in-folder' into 'master'

Hid re-named entries in subfolders

Closes #63984

See merge request gitlab-org/gitlab-ce!30242
parents 02ad0c2f 7e670000
......@@ -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