mirror of
https://github.com/nextcloud/server.git
synced 2025-02-12 03:59:16 +00:00
15 lines
661 B
JavaScript
15 lines
661 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
/**
|
|
* This only gets loaded if an update is available and the notifications app is not enabled for the user.
|
|
*/
|
|
window.addEventListener('DOMContentLoaded', function(){
|
|
var text = t('core', '{version} is available. Get more information on how to update.', {version: oc_updateState.updateVersion}),
|
|
element = $('<a>').attr('href', oc_updateState.updateLink).attr('target','_blank').text(text);
|
|
|
|
OC.Notification.showHtml(element.prop('outerHTML'), { type: 'error' });
|
|
});
|