fix: stay in the same position after renaming or deleting
This commit is contained in:
parent
27648d1e9b
commit
ca2b45525c
@ -45,6 +45,7 @@ export default {
|
||||
submit: async function () {
|
||||
buttons.loading("delete");
|
||||
|
||||
window.sessionStorage.setItem("modified", "true");
|
||||
try {
|
||||
if (!this.isListing) {
|
||||
await api.remove(this.$route.path);
|
||||
|
||||
@ -88,6 +88,7 @@ export default {
|
||||
newLink =
|
||||
url.removeLastDir(oldLink) + "/" + encodeURIComponent(this.name);
|
||||
|
||||
window.sessionStorage.setItem("modified", "true");
|
||||
try {
|
||||
await api.move([{ from: oldLink, to: newLink }]);
|
||||
if (!this.isListing) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user