Skip to content

Commit

Permalink
Merge pull request #176 from vtfk/vigo-ot-laerling
Browse files Browse the repository at this point in the history
VIGO systems
  • Loading branch information
runely authored Jun 27, 2022
2 parents e2ab1ef + c75612e commit 2f7e779
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 8 additions & 0 deletions src/data/systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 2 additions & 5 deletions src/pages/Detail/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

1 comment on commit 2f7e779

@vercel
Copy link

@vercel vercel bot commented on 2f7e779 Jun 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dust-web – ./

dust-web-git-main-vtfk.vercel.app
dust-web-vtfk.vercel.app
dust.vtfk.no
dust-web.vercel.app

Please sign in to comment.