From 0cd94e2ba885d7b73b4da8d41eef2048c2fbb448 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 17 Jul 2017 17:38:41 +0200 Subject: [PATCH] add title to contacts app --- customize.dist/translations/messages.js | 1 + www/contacts/main.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index a8371ad5a..c8a472954 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -265,6 +265,7 @@ define(function () { // contacts/userlist out.userlist_addAsFriendTitle = 'Add "{0}" as a contact'; out.userlist_thisIsYou = 'This is you ("{0}")'; + out.contacts_title = "Contacts"; // File manager diff --git a/www/contacts/main.js b/www/contacts/main.js index c7c57965c..c89d31a95 100644 --- a/www/contacts/main.js +++ b/www/contacts/main.js @@ -25,14 +25,15 @@ define([ var $messages = $iframe.find('#messaging'); var $bar = $iframe.find('.toolbar-container'); - var displayed = ['useradmin', 'newpad', 'limit']; + var displayed = ['useradmin', 'newpad', 'limit', 'pageTitle']; var configTb = { displayed: displayed, ifrw: ifrw, common: Cryptpad, $container: $bar, - network: Cryptpad.getNetwork() + network: Cryptpad.getNetwork(), + pageTitle: Messages.contacts_title, }; var toolbar = APP.toolbar = Toolbar.create(configTb); toolbar.$rightside.html(''); // Remove the drawer if we don't use it to hide the toolbar