Commit efe4779a authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Bug image des calculettes sans thème: le préfixe de chemin était répété à chaque chargement

Showing with 5 additions and 2 deletions
+5 -2
......@@ -64,11 +64,14 @@ export class CalculatorListComponent implements OnInit {
}
// extra card for unused calculators
if (unusedCalculators.length > 0) {
const unusedTheme = themes.find(i => i.name === undefined);
const unusedThemeConfig = themes.find(i => i.name === undefined);
const unusedTheme: any = {};
unusedTheme.calculators = [];
unusedTheme.title = ServiceFactory.instance.i18nService.localizeText("INFO_THEME_MODULES_INUTILISES_TITRE");
unusedTheme.description = ServiceFactory.instance.i18nService.localizeText("INFO_THEME_MODULES_INUTILISES_DESCRIPTION");
unusedTheme.image.path = "assets/images/themes/" + unusedTheme.image.path;
unusedTheme.image = {
path: "assets/images/themes/" + unusedThemeConfig.image.path
};
for (const t of unusedCalculators) {
if (t !== CalculatorType.Structure) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment