Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
design-system-lib
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
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
julkiset-sivut
design-system-lib
Commits
5bbe927a
Commit
5bbe927a
authored
4 years ago
by
druid
Browse files
Options
Downloads
Patches
Plain Diff
realisation name vs course unit name. realisation name is shown inside course accordion
parent
6a9f4b7b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/courses/hy-content-list/hy-content-list.tsx
+4
-6
4 additions, 6 deletions
src/components/courses/hy-content-list/hy-content-list.tsx
with
4 additions
and
6 deletions
src/components/courses/hy-content-list/hy-content-list.tsx
+
4
−
6
View file @
5bbe927a
...
...
@@ -36,7 +36,7 @@ export class HyContentList implements ComponentInterface {
let
courseItem
=
courseObject
[
courseProperty
];
let
courseCode
=
courseItem
[
'
code
'
];
let
courseCredits
=
courseItem
[
'
credits
'
];
let
courseName
=
courseItem
[
'
name
'
]
+
'
,
'
+
courseCredits
+
'
'
+
this
.
creditsLabel
;
//
let course
Unit
Name = courseItem['name'] + ', ' + courseCredits + ' ' + this.creditsLabel;
if
(
courseItem
[
'
tags
'
])
{
let
tags
=
JSON
.
parse
(
JSON
.
stringify
(
courseItem
[
'
tags
'
]));
...
...
@@ -52,6 +52,8 @@ export class HyContentList implements ComponentInterface {
for
(
let
realisationProperty
in
realisations
)
{
let
realizationItem
=
realisations
[
realisationProperty
];
let
courseRealisationName
=
realizationItem
[
'
name
'
];
let
courseRealisationFullName
=
courseRealisationName
+
'
,
'
+
courseCredits
+
'
'
+
this
.
creditsLabel
;
let
courseStudyFormat
=
realizationItem
[
'
studyFormat
'
];
let
courseStartDate
=
realizationItem
[
'
startDate
'
];
let
courseEndDate
=
realizationItem
[
'
endDate
'
];
...
...
@@ -60,17 +62,13 @@ export class HyContentList implements ComponentInterface {
const
contentListItemClassAttributes
=
[
'
item
'
,
this
.
variant
].
join
(
'
'
);
//tabs[index].addEventListener('keydown', this.keydownEventListener);
//contentListItem.addEventListener('keydown', this.keydownEventListener);
//courseRealisations.push(contentListItem);
courseRealisations
.
push
(
<
hy
-
content-list-item
id
=
{
realisationProperty
}
class
=
{
contentListItemClassAttributes
}
variant
=
{
this
.
variant
}
course-code
=
{
courseCode
}
course-name
=
{
courseName
}
course-name
=
{
course
RealisationFull
Name
}
course-credits
=
{
courseCredits
}
course-tags
=
{
courseTagsJSON
}
course-start-date
=
{
courseStartDate
}
...
...
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