Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-jams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-jams
Commits
d63ee362
Commit
d63ee362
authored
3 years ago
by
Larbi Gharib
Browse files
Options
Downloads
Patches
Plain Diff
Add contact button
Change-Id: Iadc44570526085bd98d45fa717a104593e341fa8
parent
7db5a82d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jams-react-client/src/views/Blueprint/EditBlueprintPermissions.js
+1
-1
1 addition, 1 deletion
...ct-client/src/views/Blueprint/EditBlueprintPermissions.js
jams-react-client/src/views/Contacts/Contacts.js
+9
-1
9 additions, 1 deletion
jams-react-client/src/views/Contacts/Contacts.js
with
10 additions
and
2 deletions
jams-react-client/src/views/Blueprint/EditBlueprintPermissions.js
+
1
−
1
View file @
d63ee362
...
...
@@ -210,7 +210,7 @@ export default function EditBlueprintPermissions(props) {
setProxyEnabled
(
policyData
[
"
proxyEnabled
"
]);
setProxyServer
(
policyData
[
"
proxyServer
"
]);
setDhtProxyListUrl
();
setAllowLookup
(
policyData
[
"
a
utoAnswer
"
]);
setAllowLookup
(
policyData
[
"
a
llowLookup
"
]);
policyData
[
"
defaultModerators
"
].
split
(
"
/
"
).
forEach
((
id
)
=>
{
if
(
id
!==
"
undefined
"
&&
id
!==
""
){
...
...
This diff is collapsed.
Click to expand it.
jams-react-client/src/views/Contacts/Contacts.js
+
9
−
1
View file @
d63ee362
...
...
@@ -72,6 +72,9 @@ const styles = {
loading
:
{
width
:
"
100%
"
,
},
actionButtons
:
{
height
:
"
3em
"
,
}
};
const
useStyles
=
makeStyles
(
styles
);
...
...
@@ -88,6 +91,7 @@ export default function Users(props) {
const
[
removedContact
,
setRemovedContact
]
=
React
.
useState
();
const
[
removedContactName
,
setRemovedContactName
]
=
React
.
useState
();
const
[
open
,
setOpen
]
=
React
.
useState
(
false
);
const
[
allowedToAdd
,
setAllowedToAdd
]
=
React
.
useState
(
true
);
const
searchContacts
=
(
value
)
=>
{
axios
(
...
...
@@ -118,6 +122,8 @@ export default function Users(props) {
if
(
error
.
response
.
status
===
401
)
{
auth
.
authenticated
=
false
;
history
.
push
(
"
/
"
);
}
else
if
(
error
.
response
.
status
===
403
){
setAllowedToAdd
(
false
);
}
});
}
...
...
@@ -366,7 +372,8 @@ export default function Users(props) {
<
/Dialog
>
<
GridContainer
>
<
GridItem
xs
=
{
12
}
sm
=
{
12
}
md
=
{
12
}
>
{
auth
.
hasAdminScope
()
&&
<
Button
<
div
className
=
{
classes
.
actionButtons
}
>
{
allowedToAdd
&&
<
Button
variant
=
"
contained
"
color
=
"
primary
"
href
=
"
#contained-buttons
"
...
...
@@ -376,6 +383,7 @@ export default function Users(props) {
>
<
AddCircleOutlineIcon
/>
{
i18next
.
t
(
"
add_a_contact
"
,
"
Add contact
"
)}
<
/Button>
}
<
/div
>
<
div
className
=
{
classes
.
searchWrapper
}
>
<
CustomInput
formControlProps
=
{{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment