@@ -54,15 +54,15 @@ export class TemplatePickerComponent {
54
54
private _translateService : TranslateService ) {
55
55
56
56
this . showTryView = this . _globalStateService . showTryView ;
57
- this . _language = this . _translateService . instant ( PortalResources . temp_category_api ) ;
57
+ this . _language = this . _translateService . instant ( " temp_category_api" ) ;
58
58
59
59
this . _orderedCategoties = [
60
- this . _translateService . instant ( PortalResources . temp_category_core ) ,
61
- this . _translateService . instant ( PortalResources . temp_category_api ) ,
62
- this . _translateService . instant ( PortalResources . temp_category_dataProcessing ) ,
63
- this . _translateService . instant ( PortalResources . temp_category_all ) ,
64
- this . _translateService . instant ( PortalResources . temp_category_experimental ) ,
65
- this . _translateService . instant ( PortalResources . temp_category_all )
60
+ this . _translateService . instant ( " temp_category_core" ) ,
61
+ this . _translateService . instant ( " temp_category_api" ) ,
62
+ this . _translateService . instant ( " temp_category_dataProcessing" ) ,
63
+ this . _translateService . instant ( "temp_category_samples" ) ,
64
+ this . _translateService . instant ( " temp_category_experimental" ) ,
65
+ this . _translateService . instant ( " temp_category_all" )
66
66
] ;
67
67
}
68
68
@@ -95,13 +95,13 @@ export class TemplatePickerComponent {
95
95
96
96
let initLanguages = false , initCategories = false ;
97
97
if ( this . languages . length === 0 ) {
98
- this . languages = [ { displayLabel : this . _translateService . instant ( PortalResources . all ) , value : this . _translateService . instant ( PortalResources . temp_category_all ) , default : true } ] ;
98
+ this . languages = [ { displayLabel : this . _translateService . instant ( PortalResources . all ) , value : this . _translateService . instant ( " temp_category_all" ) , default : true } ] ;
99
99
initLanguages = true ;
100
100
}
101
101
102
102
103
103
if ( this . categories . length === 0 ) {
104
- this . categories = [ { displayLabel : this . _translateService . instant ( PortalResources . all ) , value : this . _translateService . instant ( PortalResources . temp_category_all ) } ] ;
104
+ this . categories = [ { displayLabel : this . _translateService . instant ( PortalResources . all ) , value : this . _translateService . instant ( " temp_category_all" ) } ] ;
105
105
initCategories = true ;
106
106
}
107
107
@@ -129,7 +129,7 @@ export class TemplatePickerComponent {
129
129
130
130
if ( initCategories ) {
131
131
template . metadata . category . forEach ( ( c ) => {
132
- if ( ( this . _language === this . _translateService . instant ( PortalResources . temp_category_all ) || ( template . metadata . language === this . _language ) ) ) {
132
+ if ( ( this . _language === this . _translateService . instant ( " temp_category_all" ) || ( template . metadata . language === this . _language ) ) ) {
133
133
134
134
var index = this . categories . findIndex ( ( category ) => {
135
135
return category . value === c ;
@@ -143,7 +143,7 @@ export class TemplatePickerComponent {
143
143
144
144
if ( this . category === c ) {
145
145
dropDownElement . default = true ;
146
- } else if ( ! this . category && c === this . _translateService . instant ( PortalResources . temp_category_core ) ) {
146
+ } else if ( ! this . category && c === this . _translateService . instant ( " temp_category_core" ) ) {
147
147
dropDownElement . default = true ;
148
148
}
149
149
@@ -154,12 +154,12 @@ export class TemplatePickerComponent {
154
154
}
155
155
156
156
var matchIndex = template . metadata . category . findIndex ( ( c ) => {
157
- return c === this . category || this . category === this . _translateService . instant ( PortalResources . temp_category_all ) ;
157
+ return c === this . category || this . category === this . _translateService . instant ( " temp_category_all" ) ;
158
158
} ) ;
159
159
160
160
if ( matchIndex !== - 1 ) {
161
- if ( ( this . _language === this . _translateService . instant ( PortalResources . temp_category_all ) || ( template . metadata . language === this . _language ) ) ) {
162
- var keys = template . metadata . category . slice ( 0 ) || [ this . _translateService . instant ( PortalResources . temp_category_experimental ) ] ;
161
+ if ( ( this . _language === this . _translateService . instant ( " temp_category_all" ) || ( template . metadata . language === this . _language ) ) ) {
162
+ var keys = template . metadata . category . slice ( 0 ) || [ this . _translateService . instant ( " temp_category_experimental" ) ] ;
163
163
keys . push (
164
164
template . metadata . language
165
165
) ;
0 commit comments