Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
anis-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
anis
anis-client
Commits
d9e4c2c6
Commit
d9e4c2c6
authored
5 years ago
by
François Agneray
Browse files
Options
Downloads
Plain Diff
Merge branch '13-selection-des-outputs' into 'develop'
#13
=> done Closes
#13
See merge request
!9
parents
fad5e131
f3688c21
No related branches found
No related tags found
2 merge requests
!68
Develop
,
!9
#13 => done
Pipeline
#1172
passed
5 years ago
Stage: install
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/search/components/output-tabs.component.ts
+3
-15
3 additions, 15 deletions
src/app/search/components/output-tabs.component.ts
with
3 additions
and
15 deletions
src/app/search/components/output-tabs.component.ts
+
3
−
15
View file @
d9e4c2c6
...
@@ -10,27 +10,15 @@ import { OutputFamily, Category, Attribute, DatasetOutputFamily } from '../../me
...
@@ -10,27 +10,15 @@ import { OutputFamily, Category, Attribute, DatasetOutputFamily } from '../../me
export
class
OutputTabsComponent
{
export
class
OutputTabsComponent
{
@
Input
()
outputFamilyList
:
OutputFamily
[];
@
Input
()
outputFamilyList
:
OutputFamily
[];
@
Input
()
categoryList
:
Category
[];
@
Input
()
categoryList
:
Category
[];
@
Input
()
@
Input
()
datasetAttributeList
:
Attribute
[];
set
datasetAttributeList
(
datasetAttributeList
:
Attribute
[])
{
this
.
setDefaultSelected
(
datasetAttributeList
);
this
.
_datasetAttributeList
=
datasetAttributeList
;
}
@
Input
()
datasetOutputFamilyList
:
DatasetOutputFamily
[];
@
Input
()
datasetOutputFamilyList
:
DatasetOutputFamily
[];
@
Input
()
outputList
:
number
[];
@
Input
()
outputList
:
number
[];
@
Output
()
changed
:
EventEmitter
<
number
[]
>
=
new
EventEmitter
();
@
Output
()
changed
:
EventEmitter
<
number
[]
>
=
new
EventEmitter
();
_datasetAttributeList
:
Attribute
[];
setDefaultSelected
(
datasetAttributeList
:
Attribute
[])
{
const
outputList
=
datasetAttributeList
.
filter
(
attribute
=>
attribute
.
selected
&&
attribute
.
id_output_family
)
.
map
(
attribute
=>
attribute
.
id
);
Promise
.
resolve
(
null
).
then
(()
=>
this
.
changed
.
emit
(
outputList
));
}
isLoading
()
{
isLoading
()
{
if
(
this
.
outputFamilyList
.
length
>
0
&&
if
(
this
.
outputFamilyList
.
length
>
0
&&
this
.
categoryList
.
length
>
0
&&
this
.
categoryList
.
length
>
0
&&
this
.
_
datasetAttributeList
.
length
>
0
&&
this
.
datasetAttributeList
.
length
>
0
&&
this
.
datasetOutputFamilyList
.
length
>
0
this
.
datasetOutputFamilyList
.
length
>
0
)
{
)
{
return
false
;
return
false
;
...
@@ -48,7 +36,7 @@ export class OutputTabsComponent {
...
@@ -48,7 +36,7 @@ export class OutputTabsComponent {
}
}
getAttribute
(
id
:
number
)
{
getAttribute
(
id
:
number
)
{
return
this
.
_
datasetAttributeList
.
find
(
attribute
=>
attribute
.
id
===
id
);
return
this
.
datasetAttributeList
.
find
(
attribute
=>
attribute
.
id
===
id
);
}
}
isSelected
(
id
:
number
)
{
isSelected
(
id
:
number
)
{
...
...
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