Rename legacy notification so it's less confusing
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
4b50fe7560
commit
52f8d75d1a
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this gets only loaded if an update is available and then shows a temporary notification
|
* This only gets loaded if an update is available and the notifications app is not enabled for the user.
|
||||||
*/
|
*/
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var text = t('core', '{version} is available. Get more information on how to update.', {version: oc_updateState.updateVersion}),
|
var text = t('core', '{version} is available. Get more information on how to update.', {version: oc_updateState.updateVersion}),
|
|
@ -63,7 +63,7 @@ class Application extends App {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($updateChecker->getUpdateState() !== []) {
|
if ($updateChecker->getUpdateState() !== []) {
|
||||||
Util::addScript('updatenotification', 'notification');
|
Util::addScript('updatenotification', 'legacy-notification');
|
||||||
\OC_Hook::connect('\OCP\Config', 'js', $updateChecker, 'populateJavaScriptVariables');
|
\OC_Hook::connect('\OCP\Config', 'js', $updateChecker, 'populateJavaScriptVariables');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue