@akkadu/rsi-interpretation-manager
Advanced tools
Comparing version 0.1.28 to 0.1.29
@@ -86,3 +86,3 @@ import RSIBase from '@akkadu/rsi-base'; | ||
*/ | ||
addInterpretationManager(): void; | ||
addInterpretationManager(): Promise<void>; | ||
} |
@@ -55,3 +55,2 @@ "use strict"; | ||
var rsi_base_1 = require("@akkadu/rsi-base"); | ||
var languages_1 = require("./languages"); | ||
var InterpretationManager = /** @class */ (function (_super) { | ||
@@ -186,3 +185,3 @@ __extends(InterpretationManager, _super); | ||
var labelImage = document.createElement('img'); | ||
labelImage.src = _this.getFlagUrl(language.code); | ||
labelImage.src = language.flag; | ||
label.appendChild(labelImage); | ||
@@ -252,3 +251,3 @@ label.appendChild(newText); | ||
var image = selectorHeader.getElementsByTagName('img')[0]; | ||
image.src = _this.getFlagUrl(newLanguage.code); | ||
image.src = newLanguage.flag; | ||
} | ||
@@ -301,3 +300,3 @@ else { | ||
newImage = document.createElement('img'); | ||
newImage.src = _this.getFlagUrl(language.code); | ||
newImage.src = language.flag; | ||
newOption.appendChild(newImage); | ||
@@ -308,3 +307,3 @@ newOption.appendChild(newText); | ||
var i = 0; | ||
languages_1.languagesList.forEach(function (language) { | ||
this.akkaduLanguages.source.forEach(function (language) { | ||
languagesOptions.appendChild(createItemLanguage(language, i)); | ||
@@ -439,8 +438,18 @@ i++; | ||
InterpretationManager.prototype.addInterpretationManager = function () { | ||
this.setUpBaseInterpretationManager(); | ||
this.handleEventLanguagesSection(); | ||
this.handleInterpretationLanguagesSection(); | ||
this.handleAddInterpreter(); | ||
this.handleManageInterpreter(); | ||
this.handleValidation(); | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.loadLanguages()]; | ||
case 1: | ||
_a.sent(); | ||
this.setUpBaseInterpretationManager(); | ||
this.handleEventLanguagesSection(); | ||
this.handleInterpretationLanguagesSection(); | ||
this.handleAddInterpreter(); | ||
this.handleManageInterpreter(); | ||
this.handleValidation(); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
@@ -447,0 +456,0 @@ return InterpretationManager; |
{ | ||
"name": "@akkadu/rsi-interpretation-manager", | ||
"version": "0.1.28", | ||
"version": "0.1.29", | ||
"description": "", | ||
@@ -23,5 +23,5 @@ "main": "lib/index.js", | ||
"@akkadu/logger": "^2.1.0", | ||
"@akkadu/rsi-base": "^0.2.35" | ||
"@akkadu/rsi-base": "^0.2.36" | ||
}, | ||
"gitHead": "1047d13ab5ddbc83ff62b3af615c518f56b411ad", | ||
"gitHead": "f6187a2cdadc70614347b5715c1660e695216862", | ||
"devDependencies": { | ||
@@ -28,0 +28,0 @@ "lerna": "^4.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37015
721
Updated@akkadu/rsi-base@^0.2.36