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
else
R.fragment
(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
makeTeam :: TeamMember -> R.Element
makeTeam { username, shared_folder_id } =
H.div { className: "from-group row" }
[ H.div { className: "col-8" } [ H.text username ]
H.div { className: "form-group row my-0" }
[ H.div { className: "col-9" } [ H.text username ]
, 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"
, type: "button"
, on: { click: submit shared_folder_id }
......@@ -130,9 +139,9 @@ teamLayoutRowsCpt = here.component "teamLayoutRows" cpt
]
makeLeader username =
H.div { className: "from-group row" }
[ H.div { className: "col-8" } [ H.text username ]
, H.p { className: "col-2" } [ H.text "owner" ]
H.div { className: "form-group row my-0" }
[ H.div { className: "col-9" } [ H.text username ]
, H.p { className: "col-3 text-center" } [ H.text "owner" ]
]
submit sharedFolderId _ = do
......
......@@ -176,12 +176,12 @@ settingsBoxLens Corpus =
]
, Upload
, SearchBox
, ShareURL
, WriteNodesDocuments
-- , ReloadWithSettings -- TODO
, Move moveParameters
-- , Download
-- , Link (linkParams Annuaire)
, ShareURL
, Delete
]
settingsBoxLens Dashboard =
......@@ -350,8 +350,8 @@ settingsBoxLens Team =
, NodeFrameVisio
]
, Share
, ShareURL
, ManageTeam
, ShareURL
, Delete
]
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