Skip to content

Commit 8c28aad

Browse files
committed
Fixes AB#598: Alt not defined on image
1 parent e8e5a77 commit 8c28aad

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

desktop/i18n/resources.resjson

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
"gallery.recentTemplates": "Recent templates",
150150
"gallery.title": "Gallery applications",
151151
"gallery.viewReadme": "View readme",
152+
"info-box.infoIconTitle": "Information",
152153
"job-progress-status.inaccurate": "Task count might not be accurate in real time",
153154
"job-progress-status.progressBar": "Job progress",
154155
"job-state.active.message": "Job is currently running. Task can be scheduled.",

desktop/src/@batch-flask/ui/info-box/info-box.component.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { Component, Input } from "@angular/core";
22

33
@Component({
44
selector: "bl-info-box",
5-
template: `
6-
<div class="infobox">
7-
<div class="infobox-image"><i class="fa fa-info-circle fa-3" aria-hidden="true"></i></div>
8-
<div class="infobox-text">{{message}}</div>
9-
</div>`,
5+
templateUrl: "info-box.html",
106
})
117
export class InfoBoxComponent {
128
@Input()
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div class="infobox">
2+
<div class="infobox-image">
3+
<i class="fa fa-info-circle fa-3" aria-hidden="true" title="{{'info-box.infoIconTitle' | i18n}}"></i>
4+
</div>
5+
<div class="infobox-text">{{message}}</div>
6+
</div>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
info-box:
2+
infoIconTitle: Information

desktop/src/@batch-flask/ui/info-box/info-box.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { NgModule } from "@angular/core";
22
import { RouterModule } from "@angular/router";
33
import { InfoBoxComponent } from "./info-box.component";
4+
import { I18nUIModule } from "../i18n";
45

56
const components = [
67
InfoBoxComponent,
@@ -10,7 +11,7 @@ const components = [
1011
declarations: components,
1112
entryComponents: [],
1213
exports: [...components],
13-
imports: [RouterModule],
14+
imports: [RouterModule, I18nUIModule],
1415
})
1516

1617
export class InfoBoxModule {

0 commit comments

Comments
 (0)