set titles for pages which still used the default

This commit is contained in:
ansuz 2022-04-11 17:49:13 +05:30
parent 58a55d43d9
commit 58b98a77e2
8 changed files with 8 additions and 10 deletions

View File

@ -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',

View File

@ -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; }

View File

@ -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', [

View File

@ -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];

View File

@ -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', [

View File

@ -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);
}
});*/
});
});

View File

@ -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();

View File

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