parent
009f9c297d
commit
625fd92130
9 changed files with 32 additions and 17 deletions
|
@ -61,7 +61,7 @@ export default () => {
|
|||
setLoading(true);
|
||||
clearFlashes('files:view');
|
||||
fetchFileContent()
|
||||
.then(content => saveFileContents(uuid, encodeURIComponent(name || hash.replace(/^#/, '')), content))
|
||||
.then(content => saveFileContents(uuid, name || hash.replace(/^#/, ''), content))
|
||||
.then(() => {
|
||||
if (name) {
|
||||
history.push(`/server/${id}/files/edit#/${name}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue