diff --git a/src/data/systems.json b/src/data/systems.json index d459603..97f6e91 100644 --- a/src/data/systems.json +++ b/src/data/systems.json @@ -23,6 +23,14 @@ "name": "Forrige synkroniseringstidpunkt", "short": "sync" }, + { + "name": "VIGO OT", + "short": "vigoot" + }, + { + "name": "VIGO Opplæring (Lærling)", + "short": "vigolaerling" + }, { "name": "Visma HRM", "short": "visma" diff --git a/src/pages/Detail/index.js b/src/pages/Detail/index.js index 4b72b44..14736b1 100644 --- a/src/pages/Detail/index.js +++ b/src/pages/Detail/index.js @@ -222,11 +222,8 @@ export const Detail = () => { function getTitle () { if (!user.domain) return '' if (user.domain === 'login') return user.title // employee - if (user.domain === 'skole') { - if (user.office.includes(' Lærling')) return 'Lærling' // apprentice - if (user.office.includes('OT ')) return 'OT-ungdom' // OT - return 'Elev' // student - } + if (user.domain === 'skole' && user.title) return user.title // apprentice, OT or student + return '' } function repackSystemName (name) {