server/core
Daniel Calviño Sánchez 03f2e8a10e Fix default timeouts in OC.Notification
When no timeout was given "show()" used the default timeout of
"OCP.Toast", which is 7 seconds instead of indefinitely as stated in the
documentation of "show()". "showHtml()" should also indefinitely show
the notification if no timeout is given, but due to the strict
comparison the notification was indefinitely shown only when a timeout
of 0 was explicitly given. Now both methods show the notification
indefinitely (or until it is explicitly hidden) when no timeout is
given.

The unit tests did not catch this error because "showHtml()" had no
tests (as before the move to Toastify it was called from "show()" and
thus implicitly tested), and because "show()" verified that "hide()" was
not called after some time; "hide()" is no longer called from "show()"
since "OCP.Toast" is used internally, so the test always passed even if
the notification was indeed hidden. Now the test is based on whether the
element is found or not, and explicit tests were added too for
"showHtml()".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-07-26 18:46:59 +02:00
..
ajax Remove trailing spaces from localized strings 2019-02-15 11:26:52 +01:00
BackgroundJobs Login flow V2 2019-02-25 07:24:50 +01:00
Command Mimetype list integrity check should not fail if it's changed (#15810) 2019-07-07 20:01:58 +02:00
Controller Merge pull request #16308 from nextcloud/fix/undefined-offset-0 2019-07-10 12:16:36 +02:00
css Add border-top to settings menu when its open 2019-07-19 15:18:26 +02:00
Data Login flow V2 2019-02-25 07:24:50 +01:00
Db Login flow V2 2019-02-25 07:24:50 +01:00
doc changed to nextcloud 2016-06-22 08:20:23 +02:00
Exception Login flow V2 2019-02-25 07:24:50 +01:00
fonts Move font from Nunito to Noto Sans 2019-06-22 11:23:44 +02:00
img Add enterprise logo 2019-07-15 16:45:53 +02:00
js Fix default timeouts in OC.Notification 2019-07-26 18:46:59 +02:00
l10n [tx-robot] updated from transifex 2019-07-26 02:14:42 +00:00
Middleware Allow 2FA to be setup on first login 2019-05-17 10:11:53 +02:00
Migrations Add DB table to extend filecache with metadata etag, creation time and upload time 2019-07-15 16:58:44 +02:00
Notification Fix new core notifier 2019-07-15 15:14:58 +02:00
search Allow search unregister 2019-03-01 08:39:53 +01:00
Service Login flow V2 2019-02-25 07:24:50 +01:00
skeleton ownCloud -> Nextcloud 2016-07-28 15:47:04 +02:00
src Fix default timeouts in OC.Notification 2019-07-26 18:46:59 +02:00
templates Remove precomposed from apple-touch-icon-precomposed 2019-06-15 01:29:45 +08:00
vendor Remove core.js 2019-01-09 15:02:00 +01:00
.l10nignore Add core/js/dist/ to l10nignore 2019-06-13 13:55:22 +02:00
Application.php Keep the old method as a fallback and adjust the tests 2019-07-16 11:36:32 +02:00
register_command.php Stop decryption when maintenance mode is enabled, fixes #8311 2019-05-21 09:24:50 +02:00
routes.php Remote wipe support 2019-05-20 20:50:27 +02:00
shipped.json Remove files_texteditor from shipped apps 2019-07-24 14:16:17 +02:00
strings.php Update with robin 2016-07-21 18:13:58 +02:00
webpack.js Unify webpack config 2019-05-29 15:19:18 +02:00