updated terminology from "Coach" to "Counselor" across multiple files for consistency and clarity
Some checks failed
PHPUnit / test (push) Has been cancelled
Some checks failed
PHPUnit / test (push) Has been cancelled
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { apiPatch, apiPost, invalidateSessionCheck } from './api.js';
|
||||
import { getRole, getUser, showToast } from './app.js';
|
||||
import { getRole, getUser, showToast, formatRoleLabel } from './app.js';
|
||||
|
||||
/** @typedef {'admin_reset' | 'self'} PasswordModalMode */
|
||||
|
||||
@ -13,9 +13,7 @@ function esc(s) {
|
||||
}
|
||||
|
||||
function roleLabel(role) {
|
||||
if (!role) return '';
|
||||
if (role === 'coach') return 'Counselor';
|
||||
return role.charAt(0).toUpperCase() + role.slice(1);
|
||||
return formatRoleLabel(role);
|
||||
}
|
||||
|
||||
function signInHintForRole(role) {
|
||||
|
||||
Reference in New Issue
Block a user