bennet0496 / nextcloud_attachments

Upload large attachments to Nextcloud and automatically create share link
MIT License
4 stars 3 forks source link

Settings page reflects connected status only after reload #4

Open pabzm opened 4 months ago

pabzm commented 4 months ago

After successfully connecting my nextcloud instance in the compose settings I see a green notification, but the "Status"-text stays at "not connected" (including the link). Only after a page reload the new status text is shown.

When disconnecting from nextcloud the page reloads instantly, to the effect that the status text is updated.

It would be nicer to also on establishing the connection see the new status instantly (also because the notification vanishes after a few seconds and can be missed).

bennet0496 commented 4 months ago

I came across this problem in development. The disconnect routine just reloads the frame, however it didn't for for the connect routine for some odd reason so I left it at that and didn't bother.

I will have a look into better options for updating the status, but it won't be high priority.