Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating Directory, Uploading File & Refresh #88

Open
jamesbrindle opened this issue Jun 23, 2021 · 2 comments
Open

Creating Directory, Uploading File & Refresh #88

jamesbrindle opened this issue Jun 23, 2021 · 2 comments
Assignees
Labels
awaiting feedback If you are the reporter, please let me know if this fixes your issue bug

Comments

@jamesbrindle
Copy link

Hi,

Thanks for the awesome tool by the way!

I was wondering if someone could help me...

When uploading a file, or creating a directory, the list doesn't refresh (i'm using Chrome).

I've added a refresh button, and put in a 'location.reload()' upon creating a directory or uploading a file - Which works fine, except if the user has navigated to a sub-directory - Then the refresh doesn't have the index.html so doesn't load...

Is there a function I can use to reload the list?

Thanks in advance.

@jamesbrindle
Copy link
Author

jamesbrindle commented Jun 23, 2021

Well I sort of found a workaround:

	var refreshUrl = location.protocol + '//' + location.host + location.pathname + '#' + uuidv4();						
	t.trigger("go", refreshUrl);										  

In a couple of places. Seems to do the trick.

@dom111
Copy link
Owner

dom111 commented Sep 2, 2022

Hey there, thanks for your feedback on this!

I've just completed a refactor (released as 2.2.0) of the codebase and the automatic refreshing should work somewhat better now.

If you have time, it'd be great to get some feedback on this!

Thanks!

Dom

@dom111 dom111 self-assigned this Sep 2, 2022
@dom111 dom111 added bug awaiting feedback If you are the reporter, please let me know if this fixes your issue labels Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback If you are the reporter, please let me know if this fixes your issue bug
Projects
None yet
Development

No branches or pull requests

2 participants