set titles for pages which still used the default

pull/1/head^2
ansuz 3 years ago
parent 58a55d43d9
commit 58b98a77e2

@ -7,6 +7,7 @@ define([
], function (Config, h, Msg, Pages, LocalStore) { ], function (Config, h, Msg, Pages, LocalStore) {
return function () { return function () {
document.title = Msg.contact;
var developerEmail = "contact@cryptpad.fr"; var developerEmail = "contact@cryptpad.fr";
var adminEmail = Config.adminEmail && [ var adminEmail = Config.adminEmail && [
'i.did.not.read.my.config@cryptpad.fr', 'i.did.not.read.my.config@cryptpad.fr',

@ -12,6 +12,7 @@ define([
var accounts = Pages.accounts; var accounts = Pages.accounts;
return function () { return function () {
document.title = Msg.features;
Msg.features_f_apps_note = AppConfig.availablePadTypes.map(function (app) { Msg.features_f_apps_note = AppConfig.availablePadTypes.map(function (app) {
if (AppConfig.registeredOnlyTypes.indexOf(app) !== -1) { return; } if (AppConfig.registeredOnlyTypes.indexOf(app) !== -1) { return; }
if (AppConfig.premiumTypes && AppConfig.premiumTypes.includes(app)) { return; } if (AppConfig.premiumTypes && AppConfig.premiumTypes.includes(app)) { return; }

@ -6,6 +6,7 @@ define([
'/api/config', '/api/config',
], function (h, UI, Msg, Pages, Config) { ], function (h, UI, Msg, Pages, Config) {
return function () { return function () {
document.title = Msg.login_login;
return [h('div#cp-main', [ return [h('div#cp-main', [
Pages.infopageTopbar(), Pages.infopageTopbar(),
h('div.container.cp-container', [ h('div.container.cp-container', [

@ -7,6 +7,7 @@ define([
'/customize/pages.js' '/customize/pages.js'
], function (Config, $, h, UI, Msg, Pages) { ], function (Config, $, h, UI, Msg, Pages) {
return function () { return function () {
document.title = Msg.register_header;
var urlArgs = Config.requireConf.urlArgs; var urlArgs = Config.requireConf.urlArgs;
var tos = $(UI.createCheckbox('accept-terms')).find('.cp-checkmark-label').append(Msg.register_acceptTerms).parent()[0]; var tos = $(UI.createCheckbox('accept-terms')).find('.cp-checkmark-label').append(Msg.register_acceptTerms).parent()[0];

@ -4,6 +4,7 @@ define([
'/customize/pages.js' '/customize/pages.js'
], function (h, Msg, Pages) { ], function (h, Msg, Pages) {
return function () { return function () {
document.title = Msg.footer_tos;
return h('div#cp-main', [ return h('div#cp-main', [
Pages.infopageTopbar(), Pages.infopageTopbar(),
h('div.container.cp-container', [ h('div.container.cp-container', [

@ -55,17 +55,8 @@ define([
APP.toolbar.$rightside.hide(); APP.toolbar.$rightside.hide();
MessengerUI.create($(appElement), common); MessengerUI.create($(appElement), common);
common.setTabTitle(Messages.contacts);
UI.removeLoadingScreen(); 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);
}
});*/
}); });
}); });

@ -607,6 +607,7 @@ define([
APP.origin = privateData.origin; APP.origin = privateData.origin;
APP.readOnly = privateData.readOnly; APP.readOnly = privateData.readOnly;
common.setTabTitle(Messages.profileButton);
// If not logged in, you can only view other users's profile // If not logged in, you can only view other users's profile
if (!privateData.readOnly && !common.isLoggedIn()) { if (!privateData.readOnly && !common.isLoggedIn()) {
UI.removeLoadingScreen(); UI.removeLoadingScreen();

@ -1811,6 +1811,7 @@ define([
createLeftside(); createLeftside();
createUsageButton(); createUsageButton();
common.setTabTitle(Messages.settings_title);
UI.removeLoadingScreen(); UI.removeLoadingScreen();
}); });
}); });

Loading…
Cancel
Save