-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Reload the page when an app needs an update after being enabled #19526
Reload the page when an app needs an update after being enabled #19526
Conversation
That is really nice :) |
good 👍 |
I would do this inline - right where error messages are also shown. Let me try it. |
I added the notification inline and added also a button to reload. And I tested it with IE8 ;) @nickvergessen @owncloud/designers Does this look better? Or should I remove the button again? I just thought that it would be nice to see, that an action by the user is required. |
I think it should not be green, another action is required, and anything else on the page will not work anymore. |
yellow/orange? |
I think a notification is the wrong thing for this. |
Or we fade everything out (because it doesn't work anyway) and then print "app upgrade detected - will reload in 5 seconds" |
@nickvergessen @owncloud/designers Next round :) |
And of course tested in IE8 and IE9 ;) |
Can we reuse the modal from the remote sharing stuff? |
I find the inline notification the best:
Now, if an update can take down the whole instance while it waits for the reload to happen, then I think the modal window has to be chosen. I would still add a button though. Who has time to wait 5 seconds? ;) |
This is the case, any pressing of another enable/disable button will not work. |
OK for app installs, but can't we still navigate to other parts of ownCloud? I guess it would introduce other problems where an admin forgets to reload the page and then complains that something bad is happening. |
Well any page refresh will bring up the update screen, so we are not breakinh anyything. |
Will do. |
I updated this to the OC.dialogs: @nickvergessen @oparoz Is this okay now? |
Fine by me, I would use "Reload now" instead of "Ok", but that's nitpicking ;) |
Not easy possible. Would require to redo the dialogs API 🙈 |
129d031
to
54a0752
Compare
showReloadMessage: function(appId) { | ||
OC.dialogs.info( | ||
t( | ||
'files_sharing', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
settings - not files_sharing
54a0752
to
f65697e
Compare
@DeepDiver1975 Fixed |
DO IT! :) |
|
Not two weeks before a release ;) |
Then you can still do something (within the 5 seconds time window) - there is no way to handle the "close dialog" properly. And I don't want to introduce again more glue code. It should just provide a better way than the yellow notification.
You go back. Most likely it will reload the page and then you see the upgrade page ;) |
As in throw the crap away and build something useful? Contributions in the scope of 9.0 are very much welcome. 😉 |
f65697e
to
264d123
Compare
Works. |
@nickvergessen @oparoz Can I ask you to do a final review? |
Just tested it and it works okay. However as an admin I wonder if the app has been enabled now or not. other then that 👍 |
@nickvergessen Done. |
…gs-when-app-needs-update Reload the page when an app needs an update after being enabled
Fix #16251
@PVince81 @oparoz
Now displayes a notification and then reloads the page for you: