Commit df477644 authored by Curtis Adam's avatar Curtis Adam

Update the navigation name for new users and use the first name of the profile...

Update the navigation name for new users and use the first name of the profile if the setup is completed
parent d5b5e6d8
......@@ -711,6 +711,7 @@
"saved": "Deine Änderungen wurden gespeichert!",
"canceled": "Deine Änderungen wurden verworfen!",
"error": "Deine Angaben sind noch unvollständig!",
"finishProfile": "Bitte Profil vervollständigen",
"settings": {
"name": "Profil & Konto ",
"delete": "Konto löschen",
......
......@@ -715,6 +715,7 @@
"saved": "Deine Änderungen wurden gespeichert!",
"canceled": "Deine Änderungen wurden verworfen!",
"error": "Deine Angaben sind noch unvollständig!",
"finishProfile": "Bitte Profil vervollständigen",
"settings": {
"name": "Profil & Konto ",
"delete": "Konto löschen",
......
......@@ -6,6 +6,7 @@ import * as conf from "../config/routes.js";
import {Cardsets} from "./cardsets";
import {ServerStyle} from "./styles";
import {UserPermissions} from "./permissions";
import {getAuthorName} from "./userdata";
export let Route = class Route {
/**
......@@ -290,7 +291,13 @@ export let Route = class Route {
case "backend":
return icons.topNavigation.backend + "<span class='hidden-on-iPad'>" + TAPi18n.__('navbar-collapse.backend') + "</span>";
case "profile":
return icons.topNavigation.profile + Meteor.user().profile.name + "<span class='caret'></span>";
let name = icons.topNavigation.profile;
if (Meteor.user().profile.birthname === undefined || Meteor.user().profile.birthname === "") {
name += TAPi18n.__('profile.finishProfile');
} else {
name += getAuthorName(Meteor.userId(), true, true);
}
return name + "<span class='caret'></span>";
case "profileIPad":
if (UserPermissions.isAdmin()) {
return icons.topNavigation.profile + "<span class='caret'></span>";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment