Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Client
Commits
e0148681
Commit
e0148681
authored
Oct 27, 2022
by
Bastien DUMONT
Browse files
Options
Downloads
Patches
Plain Diff
fix: create structure dto
parent
4fe8453f
Branches
Branches containing commit
Tags
Tags containing commit
4 merge requests
!418
V2.1.0
,
!400
V2.0
,
!339
fix dto variable
,
!230
V2.0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
angular.json
+3
-0
3 additions, 0 deletions
angular.json
src/app/models/structure.model.ts
+1
-0
1 addition, 0 deletions
src/app/models/structure.model.ts
src/app/services/structure.service.ts
+4
-2
4 additions, 2 deletions
src/app/services/structure.service.ts
with
8 additions
and
2 deletions
angular.json
+
3
−
0
View file @
e0148681
...
...
@@ -193,5 +193,8 @@
}
}
}
},
"cli"
:
{
"analytics"
:
false
}
}
This diff is collapsed.
Click to expand it.
src/app/models/structure.model.ts
+
1
−
0
View file @
e0148681
...
...
@@ -66,6 +66,7 @@ export class Structure {
public
alreadySelected
?
=
false
;
public
isClaimed
?:
boolean
=
null
;
public
idCNFS
?:
string
;
constructor
(
obj
?:
any
)
{
Object
.
assign
(
this
,
obj
,
{
...
...
...
...
This diff is collapsed.
Click to expand it.
src/app/services/structure.service.ts
+
4
−
2
View file @
e0148681
...
...
@@ -27,8 +27,10 @@ export class StructureService {
.
pipe
(
map
((
item
:
Structure
)
=>
new
Structure
(
item
)));
}
public
createStructure
(
structure
:
Structure
,
profile
:
User
):
Observable
<
Structure
>
{
const
idUser
=
profile
.
email
;
return
this
.
http
.
post
(
`
${
this
.
baseUrl
}
`
,
{
structure
,
idUser
}).
pipe
(
map
((
item
:
Structure
)
=>
new
Structure
(
item
)));
const
userEmail
=
profile
.
email
;
return
this
.
http
.
post
(
`
${
this
.
baseUrl
}
`
,
{
structure
,
userEmail
})
.
pipe
(
map
((
item
:
Structure
)
=>
new
Structure
(
item
)));
}
public
editStructure
(
structure
:
Partial
<
Structure
>
,
structureId
?:
string
):
Observable
<
Structure
>
{
...
...
...
...
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
sign in
to comment