Commit 282dafcd authored by Fabien Maniere's avatar Fabien Maniere

few changes on the manage team tab + reorder settings btns

parent 1c487136
Pipeline #7192 passed with stages
in 20 minutes and 33 seconds
...@@ -113,15 +113,24 @@ teamLayoutRowsCpt = here.component "teamLayoutRows" cpt ...@@ -113,15 +113,24 @@ teamLayoutRowsCpt = here.component "teamLayoutRows" cpt
else else
R.fragment R.fragment
(makeLeader team_owner_username : (map makeTeam team_members')) (makeLeader team_owner_username : (map makeTeam team_members'))
, H.div { className: "col text-center mt-3" }
[ B.iconButton
{ callback: focusOnShareTab
, title: "Invite a new user"
-- , elevation: Level1
, name: "user-plus"
, showLabel: true
}
]
] ]
where where
makeTeam :: TeamMember -> R.Element makeTeam :: TeamMember -> R.Element
makeTeam { username, shared_folder_id } = makeTeam { username, shared_folder_id } =
H.div { className: "from-group row" } H.div { className: "form-group row my-0" }
[ H.div { className: "col-8" } [ H.text username ] [ H.div { className: "col-9" } [ H.text username ]
, H.a , H.a
{ className: "text-danger col-2 fa fa-times" { className: "text-danger col-3 text-center fa fa-times"
, title: "Remove user from team" , title: "Remove user from team"
, type: "button" , type: "button"
, on: { click: submit shared_folder_id } , on: { click: submit shared_folder_id }
...@@ -130,9 +139,9 @@ teamLayoutRowsCpt = here.component "teamLayoutRows" cpt ...@@ -130,9 +139,9 @@ teamLayoutRowsCpt = here.component "teamLayoutRows" cpt
] ]
makeLeader username = makeLeader username =
H.div { className: "from-group row" } H.div { className: "form-group row my-0" }
[ H.div { className: "col-8" } [ H.text username ] [ H.div { className: "col-9" } [ H.text username ]
, H.p { className: "col-2" } [ H.text "owner" ] , H.p { className: "col-3 text-center" } [ H.text "owner" ]
] ]
submit sharedFolderId _ = do submit sharedFolderId _ = do
......
...@@ -176,12 +176,12 @@ settingsBoxLens Corpus = ...@@ -176,12 +176,12 @@ settingsBoxLens Corpus =
] ]
, Upload , Upload
, SearchBox , SearchBox
, ShareURL
, WriteNodesDocuments , WriteNodesDocuments
-- , ReloadWithSettings -- TODO -- , ReloadWithSettings -- TODO
, Move moveParameters , Move moveParameters
-- , Download -- , Download
-- , Link (linkParams Annuaire) -- , Link (linkParams Annuaire)
, ShareURL
, Delete , Delete
] ]
settingsBoxLens Dashboard = settingsBoxLens Dashboard =
...@@ -350,8 +350,8 @@ settingsBoxLens Team = ...@@ -350,8 +350,8 @@ settingsBoxLens Team =
, NodeFrameVisio , NodeFrameVisio
] ]
, Share , Share
, ShareURL
, ManageTeam , ManageTeam
, ShareURL
, Delete , Delete
] ]
settingsBoxLens _ = settingsBoxLens _ =
......
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