Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aeropuertov2-front-framework
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Charles Torres
aeropuertov2-front-framework
Commits
141d2187
Commit
141d2187
authored
Sep 13, 2020
by
huriarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cambios modal file upload
parent
9c75512d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
agent-fake-backend.interceptor.ts
...ml/src/app/interceptors/agent-fake-backend.interceptor.ts
+7
-9
ca-file-upload-modal.component.ts
...ts/ca-file-upload-modal/ca-file-upload-modal.component.ts
+6
-2
No files found.
projects/bytebot-html/src/app/interceptors/agent-fake-backend.interceptor.ts
View file @
141d2187
...
...
@@ -216,15 +216,13 @@ const channels = [
];
const
fileOK
=
{
"uuid"
:
"6850b631-5cb1-4614-8f0e-e43441d7bd35"
,
"data"
:
{
"id"
:
100
,
"name"
:
"vacaciones-preguntas.xls"
,
"description"
:
"Preguntas Vacaciones"
,
"status"
:
"PS"
,
"user"
:
""
,
"uploadDate"
:
""
}
"uuid"
:
"6850b631-5cb1-4614-8f0e-e43441d7bd35"
,
"id"
:
100
,
"fileName"
:
"vacaciones-preguntas.xls"
,
"description"
:
"Preguntas Vacaciones"
,
"status"
:
"PS"
,
"user"
:
""
,
"uploadDate"
:
""
};
@
Injectable
()
...
...
projects/bytebot-html/src/app/modules/agent/view/components/ca-file-upload-modal/ca-file-upload-modal.component.ts
View file @
141d2187
...
...
@@ -8,6 +8,7 @@ import { MatDialogRef } from '@angular/material';
export
class
FileUploadModel
{
id
:
number
;
uuid
:
string
;
filename
:
string
;
status
:
string
;
user
:
string
;
...
...
@@ -86,15 +87,18 @@ export class CaFileUploadModalComponent implements OnInit {
})
).
subscribe
((
event
:
any
)
=>
{
if
(
typeof
(
event
)
===
'object'
)
{
let
info
=
event
.
body
.
data
;
let
info
=
event
.
body
;
this
.
fileInfo
=
new
FileUploadModel
();
if
(
info
)
{
this
.
fileInfo
.
id
=
info
.
id
;
this
.
fileInfo
.
filename
=
info
.
name
;
this
.
fileInfo
.
uuid
=
info
.
uuid
;
this
.
fileInfo
.
filename
=
info
.
fileName
;
this
.
fileInfo
.
status
=
info
.
status
;
this
.
fileInfo
.
user
=
info
.
user
;
this
.
fileInfo
.
uploadDate
=
info
.
uploadDate
;
}
else
{
this
.
fileInfo
.
id
=
null
;
this
.
fileInfo
.
uuid
=
null
;
this
.
fileInfo
.
filename
=
null
;
this
.
fileInfo
.
status
=
null
;
this
.
fileInfo
.
user
=
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment