diff --git a/apps/admin.json b/apps/admin.json index 771a6d60..0f8f069f 100644 --- a/apps/admin.json +++ b/apps/admin.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🎛", - "previous": "&cv8SAWUlFEc4rpJVAdySG4wF8Jjv3CdxLmoFfx/wqzw=.sha256" + "previous": "&2pviG1KjMF1Q3yCsJJpEMDJG3AI0qG8enuUso0Z42Aw=.sha256" } diff --git a/apps/admin/script.js b/apps/admin/script.js index e7c8bb24..24d196b4 100644 --- a/apps/admin/script.js +++ b/apps/admin/script.js @@ -27,13 +27,17 @@ function global_settings_set(key, value) { }); } +function title_case(name) { + return name.split('_').map(x => x.charAt(0).toUpperCase() + x.substring(1)).join(' '); +} + window.addEventListener('load', function () { const permission_template = (permission) => html` ${permission}`; function input_template(key, description) { if (description.type === 'boolean') { return html`
  • - +
    ${description.description}
    @@ -43,7 +47,7 @@ window.addEventListener('load', function () { return html`
  • ${title_case(key)}
    ${description.description}