mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
panels: Show a banner for users with legacy desktop apps.
Users who are using ZulipDesktop or haven't managed to auto-update to ZulipElectron should be strongly encouraged to upgrade. We'll likely want to move to something even stricter that blocks loading the app at all, but this is a good start.
This commit is contained in:
@@ -19,7 +19,9 @@ const get_step = function ($process) {
|
||||
exports.initialize = function () {
|
||||
// if email has not been set up and the user is the admin, display a warning
|
||||
// to tell them to set up an email server.
|
||||
if (page_params.warn_no_email === true && page_params.is_admin) {
|
||||
if (page_params.insecure_desktop_app) {
|
||||
exports.open($("[data-process='insecure-desktop-app']"));
|
||||
} else if (page_params.warn_no_email === true && page_params.is_admin) {
|
||||
exports.open($("[data-process='email-server']"));
|
||||
} else {
|
||||
exports.open($("[data-process='notifications']"));
|
||||
|
||||
Reference in New Issue
Block a user