From 58b98a77e2ea772dc24915a8aef7c851173ee314 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 11 Apr 2022 17:49:13 +0530 Subject: [PATCH] set titles for pages which still used the default --- customize.dist/pages/contact.js | 1 + customize.dist/pages/features.js | 1 + customize.dist/pages/login.js | 1 + customize.dist/pages/register.js | 1 + customize.dist/pages/terms.js | 1 + www/contacts/inner.js | 11 +---------- www/profile/inner.js | 1 + www/settings/inner.js | 1 + 8 files changed, 8 insertions(+), 10 deletions(-) diff --git a/customize.dist/pages/contact.js b/customize.dist/pages/contact.js index 2fd3062d8..94423f640 100644 --- a/customize.dist/pages/contact.js +++ b/customize.dist/pages/contact.js @@ -7,6 +7,7 @@ define([ ], function (Config, h, Msg, Pages, LocalStore) { return function () { + document.title = Msg.contact; var developerEmail = "contact@cryptpad.fr"; var adminEmail = Config.adminEmail && [ 'i.did.not.read.my.config@cryptpad.fr', diff --git a/customize.dist/pages/features.js b/customize.dist/pages/features.js index 640d97ad8..2727bb33b 100644 --- a/customize.dist/pages/features.js +++ b/customize.dist/pages/features.js @@ -12,6 +12,7 @@ define([ var accounts = Pages.accounts; return function () { + document.title = Msg.features; Msg.features_f_apps_note = AppConfig.availablePadTypes.map(function (app) { if (AppConfig.registeredOnlyTypes.indexOf(app) !== -1) { return; } if (AppConfig.premiumTypes && AppConfig.premiumTypes.includes(app)) { return; } diff --git a/customize.dist/pages/login.js b/customize.dist/pages/login.js index 9ff9b6746..960c01c7e 100644 --- a/customize.dist/pages/login.js +++ b/customize.dist/pages/login.js @@ -6,6 +6,7 @@ define([ '/api/config', ], function (h, UI, Msg, Pages, Config) { return function () { + document.title = Msg.login_login; return [h('div#cp-main', [ Pages.infopageTopbar(), h('div.container.cp-container', [ diff --git a/customize.dist/pages/register.js b/customize.dist/pages/register.js index 1bd26ff47..5bc1351f3 100644 --- a/customize.dist/pages/register.js +++ b/customize.dist/pages/register.js @@ -7,6 +7,7 @@ define([ '/customize/pages.js' ], function (Config, $, h, UI, Msg, Pages) { return function () { + document.title = Msg.register_header; var urlArgs = Config.requireConf.urlArgs; var tos = $(UI.createCheckbox('accept-terms')).find('.cp-checkmark-label').append(Msg.register_acceptTerms).parent()[0]; diff --git a/customize.dist/pages/terms.js b/customize.dist/pages/terms.js index e93b43a0b..9a77ead3c 100644 --- a/customize.dist/pages/terms.js +++ b/customize.dist/pages/terms.js @@ -4,6 +4,7 @@ define([ '/customize/pages.js' ], function (h, Msg, Pages) { return function () { + document.title = Msg.footer_tos; return h('div#cp-main', [ Pages.infopageTopbar(), h('div.container.cp-container', [ diff --git a/www/contacts/inner.js b/www/contacts/inner.js index 5cd498e63..2fc704a22 100644 --- a/www/contacts/inner.js +++ b/www/contacts/inner.js @@ -55,17 +55,8 @@ define([ APP.toolbar.$rightside.hide(); MessengerUI.create($(appElement), common); + common.setTabTitle(Messages.contacts); UI.removeLoadingScreen(); - -/* - sFrameChan.query('Q_HEY_BUDDY', null, function (err, data) { - if (!data) { return; } - if (data.error) { - UI.warn(data.error); - } else { - UI.log(data.response); - } - });*/ }); }); diff --git a/www/profile/inner.js b/www/profile/inner.js index 230bcc88e..20892ed69 100644 --- a/www/profile/inner.js +++ b/www/profile/inner.js @@ -607,6 +607,7 @@ define([ APP.origin = privateData.origin; APP.readOnly = privateData.readOnly; + common.setTabTitle(Messages.profileButton); // If not logged in, you can only view other users's profile if (!privateData.readOnly && !common.isLoggedIn()) { UI.removeLoadingScreen(); diff --git a/www/settings/inner.js b/www/settings/inner.js index ee48e19cd..96683ae5e 100644 --- a/www/settings/inner.js +++ b/www/settings/inner.js @@ -1811,6 +1811,7 @@ define([ createLeftside(); createUsageButton(); + common.setTabTitle(Messages.settings_title); UI.removeLoadingScreen(); }); });