Skip to content

Commit

Permalink
UPDATE: arkivering button to be accessable for all user
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Apr 29, 2024
1 parent ae05a4f commit b686b61
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/frontend/src/pages/DokumentasjonPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
import { getEtterlevelseDokumentasjonStatsQuery } from '../query/EtterlevelseDokumentasjonQuery'
import { ampli, userRoleEventProp } from '../services/Amplitude'
import { EListName, codelist } from '../services/Codelist'
import { user } from '../services/User'
import { isFerdigUtfylt } from './EtterlevelseDokumentasjonTemaPage'
import { dokumentasjonerBreadCrumbPath } from './util/BreadCrumbPath'

Expand Down Expand Up @@ -330,11 +329,9 @@ export const DokumentasjonPage = () => {
)} */}
<div className="w-full flex justify-end items-center">
<ExportEtterlevelseModal etterlevelseDokumentasjonId={etterlevelseDokumentasjon.id} />
{user.isAdmin() && (
<Button variant="tertiary" size="small" onClick={() => setArkivModal(true)}>
Arkivér i WebSak
</Button>
)}
<Button variant="tertiary" size="small" onClick={() => setArkivModal(true)}>
Arkivér i WebSak
</Button>
<ArkiveringModal
arkivModal={arkivModal}
setArkivModal={setArkivModal}
Expand Down

0 comments on commit b686b61

Please sign in to comment.