Commit 988fde17 authored by Natalia Tepluhina's avatar Natalia Tepluhina Committed by Clement Ho

Revert "Created a hack to prevent setting content on image"

This reverts commit e8c1c930c3bc7c159463ed3bed8765db01b40328.
parent fc77a89d
......@@ -35,7 +35,7 @@ export default {
]),
...mapGetters('fileTemplates', ['showFileTemplatesBar']),
shouldHideEditor() {
return this.file && this.file.binary && !this.file.content;
return this.file && this.file.binary;
},
showContentViewer() {
return (
......
......@@ -213,7 +213,7 @@ export default {
? `${slashedParentPath}${oldEntry.name}`
: `${slashedParentPath}${name}`;
state.entries[newPath] = {
Vue.set(state.entries, newPath, {
...oldEntry,
id: newPath,
key: `${newPath}-${oldEntry.type}-${oldEntry.id}`,
......@@ -225,7 +225,7 @@ export default {
tree: [],
parentPath,
raw: '',
};
});
oldEntry.moved = true;
oldEntry.movedPath = newPath;
......
---
title: Resolve Renaming an image via Web IDE corrupts it
merge_request: 27486
author:
type: fixed
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