Skip to content

Commit

Permalink
Fix [UI] Runtimes are marked correctly (iguazio#1423)
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-prokopchuk authored Oct 14, 2022
1 parent 22a59e0 commit 4c0bb3e
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ such restriction.
controller: FunctionFromScratchController
});

function FunctionFromScratchController($document, $state, $timeout, lodash, ConfigService, EventHelperService,
FunctionsService, ValidationService) {
function FunctionFromScratchController($document, $state, $timeout, $i18next, i18next, lodash, ConfigService,
EventHelperService, FunctionsService, ValidationService) {
var ctrl = this;
var lng = i18next.language;

ctrl.functionData = {};
ctrl.functionFromScratchForm = {};
Expand Down Expand Up @@ -243,7 +244,7 @@ such restriction.
},
{
id: 'dotnetcore',
name: '.NET Core',
name: '.NET Core ' + $i18next.t('functions:TECH_PREVIEW_LABEL', { lng: lng }),
sourceCode: 'dXNpbmcgU3lzdGVtOw0KdXNpbmcgTnVjbGlvLlNkazsNCg0KcHVibGljIGNsYXNzIG1haW4NCnsNCiAgICBwdWJ' +
'saWMgb2JqZWN0IGhhbmRsZXIoQ29udGV4dCBjb250ZXh0LCBFdmVudCBldmVudEJhc2UpDQogICAgew0KICAgICAgICByZXR1cm' +
'4gbmV3IFJlc3BvbnNlKCkNCiAgICAgICAgew0KICAgICAgICAgICAgU3RhdHVzQ29kZSA9IDIwMCwNCiAgICAgICAgICAgIENvb' +
Expand All @@ -253,7 +254,7 @@ such restriction.
},
{
id: 'java',
name: 'Java',
name: 'Java ' + $i18next.t('functions:TECH_PREVIEW_LABEL', { lng: lng }),
sourceCode: 'aW1wb3J0IGlvLm51Y2xpby5Db250ZXh0Ow0KaW1wb3J0IGlvLm51Y2xpby5FdmVudDsNCmltcG9ydCBpby5udWN' +
'saW8uRXZlbnRIYW5kbGVyOw0KaW1wb3J0IGlvLm51Y2xpby5SZXNwb25zZTsNCg0KcHVibGljIGNsYXNzIEhhbmRsZXIgaW1wbG' +
'VtZW50cyBFdmVudEhhbmRsZXIgew0KDQogICAgQE92ZXJyaWRlDQogICAgcHVibGljIFJlc3BvbnNlIGhhbmRsZUV2ZW50KENvb' +
Expand All @@ -263,20 +264,20 @@ such restriction.
},
{
id: 'nodejs',
name: 'NodeJS ' + $i18next.t('functions:TECH_PREVIEW_LABEL', { lng: lng }),
sourceCode: 'ZXhwb3J0cy5oYW5kbGVyID0gZnVuY3Rpb24oY29udGV4dCwgZXZlbnQpIHsNCiAgICBjb250ZXh0LmNhbGxiYWN' +
'rKCcnKTsNCn07', // source code in base64
name: 'NodeJS',
visible: true
},
{
id: 'shell',
name: 'Shell',
name: 'Shell ' + $i18next.t('functions:TECH_PREVIEW_LABEL', { lng: lng }),
sourceCode: 'ZWNobyAiSGVsbG8gZnJvbSBOdWNsaW8i',
visible: true
},
{
id: 'ruby',
name: 'Ruby',
name: 'Ruby ' + $i18next.t('functions:TECH_PREVIEW_LABEL', { lng: lng }),
sourceCode: 'ZGVmIGhhbmRsZXIoY29udGV4dCwgZXZlbnQpDQplbmQ=', // source code in base64
visible: true
}
Expand Down

0 comments on commit 4c0bb3e

Please sign in to comment.