From 6f786583a95688ec2a7bb87b285c4b351bba6be6 Mon Sep 17 00:00:00 2001 From: Niko Date: Mon, 14 Feb 2022 02:30:54 +0100 Subject: [PATCH] Make account.name capitalized --- web/src/app/js/pages/meet.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/app/js/pages/meet.js b/web/src/app/js/pages/meet.js index 24e7352..22cd07d 100644 --- a/web/src/app/js/pages/meet.js +++ b/web/src/app/js/pages/meet.js @@ -7,7 +7,10 @@ app.pages.meet = { const dom = document.querySelector('#page-meet #content'); dom.innerHTML = ''; for (var i = 0; i < json.length; i++) { - var tpl = app.template.fill(json[i], TPL); + var tpl = app.template.fill(json[i], TPL, function (k,v) { + if (k === 'account.name') + return capitalize(v); + }); var item = json[i]; var icon = app.vars.default_icon; if (item.account.avatar !== undefined &&