Commit 7a1afe09 authored by pacome's avatar pacome

[client/angled-project] made read/write more radical

parent 6ae6778c
......@@ -729,10 +729,15 @@ The list of existing groups can be edited by the people in charge of the platfor
en: 'View the project'
},
viewProjectMetadata: {
fr: `Metadonnées`,
nl: 'Metadata', // nltocheck
en: 'Metadata'
writeMode: {
fr: `Mode édition`,
nl: 'schrijfmodus', // nltocheck
en: 'Write mode'
},
readMode: {
fr: `Mode lecture`,
nl: 'leesmodus', // nltocheck
en: 'Read mode'
},
'nova/desc/refnova': {
......
......@@ -39,10 +39,10 @@ const btnBackToSearch = makeLabelAndIcon('search', 2, 'chevron-left', () =>
);
const btnSwitchReader = makeLabelAndIcon('switch', 2, 'eye', () =>
tr.angled('viewProjectMetadata')
tr.angled('readMode')
);
const btnSwitchWriter = makeLabelAndIcon('switch', 2, 'eye-slash', () =>
tr.angled('viewProjectMetadata')
const btnSwitchWriter = makeLabelAndIcon('switch', 1, 'pencil', () =>
tr.angled('writeMode')
);
const btnSwitchMode = () =>
getDisplayType() === 'reader'
......@@ -101,13 +101,16 @@ const headerContent = () =>
DIV(
{ className: 'header__actions' },
btnBackToSearch(() => navigateHome()),
btnTriggerEdit(() => triggerEdit(), isActiveTriggerEdit()),
btnSwitchMode(),
renderSubscription()
withDisplayType(
'writer',
btnTriggerEdit(() => triggerEdit(), isActiveTriggerEdit())
),
withDisplayType('writer', renderSubscription())
),
DIV(
{ className: 'header__tools' },
selectProfile()
withDisplayType(
'writer',
DIV({ className: 'header__tools' }, selectProfile())
)
),
getEditProjectHidden() ? withDisplayType('writer', timeline()) : none
......
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