Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
1cc8dc05
Commit
1cc8dc05
authored
4 years ago
by
Alex ORLUC
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #14127 TIME 0:10 fix build
parent
a6928d33
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/frontend/app/attachments/attachment-create/attachment-create.component.ts
+4
-6
4 additions, 6 deletions
...achments/attachment-create/attachment-create.component.ts
with
4 additions
and
6 deletions
src/frontend/app/attachments/attachment-create/attachment-create.component.ts
+
4
−
6
View file @
1cc8dc05
...
@@ -13,10 +13,9 @@ import { ConfirmComponent } from '../../../plugins/modal/confirm.component';
...
@@ -13,10 +13,9 @@ import { ConfirmComponent } from '../../../plugins/modal/confirm.component';
import
{
FunctionsService
}
from
'
@service/functions.service
'
;
import
{
FunctionsService
}
from
'
@service/functions.service
'
;
import
{
ContactService
}
from
'
@service/contact.service
'
;
import
{
ContactService
}
from
'
@service/contact.service
'
;
import
{
ContactAutocompleteComponent
}
from
'
../../contact/autocomplete/contact-autocomplete.component
'
;
import
{
ContactAutocompleteComponent
}
from
'
../../contact/autocomplete/contact-autocomplete.component
'
;
import
{
element
}
from
"
protractor
"
;
@
Component
({
@
Component
({
templateUrl
:
"
attachment-create.component.html
"
,
templateUrl
:
'
attachment-create.component.html
'
,
styleUrls
:
[
styleUrls
:
[
'
attachment-create.component.scss
'
,
'
attachment-create.component.scss
'
,
'
../../indexation/indexing-form/indexing-form.component.scss
'
'
../../indexation/indexing-form/indexing-form.component.scss
'
...
@@ -26,7 +25,6 @@ import {element} from "protractor";
...
@@ -26,7 +25,6 @@ import {element} from "protractor";
export
class
AttachmentCreateComponent
implements
OnInit
{
export
class
AttachmentCreateComponent
implements
OnInit
{
loading
:
boolean
=
true
;
loading
:
boolean
=
true
;
...
@@ -46,7 +44,7 @@ export class AttachmentCreateComponent implements OnInit {
...
@@ -46,7 +44,7 @@ export class AttachmentCreateComponent implements OnInit {
// To catch previous index to update file
// To catch previous index to update file
asyncIndexTab
:
number
=
0
;
asyncIndexTab
:
number
=
0
;
indexTab
:
number
=
0
;
indexTab
:
number
=
0
;
resourceSubject
:
string
=
''
;
resourceSubject
:
string
=
''
;
...
@@ -72,7 +70,7 @@ export class AttachmentCreateComponent implements OnInit {
...
@@ -72,7 +70,7 @@ export class AttachmentCreateComponent implements OnInit {
private
sortPipe
:
SortPipe
,
private
sortPipe
:
SortPipe
,
public
dialog
:
MatDialog
,
public
dialog
:
MatDialog
,
public
functions
:
FunctionsService
,
public
functions
:
FunctionsService
,
private
contactService
:
ContactService
,
)
{
private
contactService
:
ContactService
,)
{
}
}
async
ngOnInit
():
Promise
<
void
>
{
async
ngOnInit
():
Promise
<
void
>
{
...
@@ -413,7 +411,7 @@ export class AttachmentCreateComponent implements OnInit {
...
@@ -413,7 +411,7 @@ export class AttachmentCreateComponent implements OnInit {
}
}
updateFile
(
index
:
number
)
{
updateFile
(
index
:
number
)
{
if
(
this
.
functions
.
empty
(
this
.
attachments
[
this
.
asyncIndexTab
].
encodedFile
.
value
))
{
if
(
this
.
functions
.
empty
(
this
.
attachments
[
this
.
asyncIndexTab
].
encodedFile
.
value
))
{
this
.
appDocumentViewer
.
toArray
()[
this
.
asyncIndexTab
].
getFile
().
pipe
(
this
.
appDocumentViewer
.
toArray
()[
this
.
asyncIndexTab
].
getFile
().
pipe
(
take
(
1
),
take
(
1
),
tap
((
data
)
=>
{
tap
((
data
)
=>
{
...
...
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