Skip to content

Commit

Permalink
Fixes AB#598: Alt not defined on image
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdahman committed Jun 6, 2023
1 parent e8e5a77 commit 8c28aad
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions desktop/i18n/resources.resjson
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"gallery.recentTemplates": "Recent templates",
"gallery.title": "Gallery applications",
"gallery.viewReadme": "View readme",
"info-box.infoIconTitle": "Information",
"job-progress-status.inaccurate": "Task count might not be accurate in real time",
"job-progress-status.progressBar": "Job progress",
"job-state.active.message": "Job is currently running. Task can be scheduled.",
Expand Down
6 changes: 1 addition & 5 deletions desktop/src/@batch-flask/ui/info-box/info-box.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import { Component, Input } from "@angular/core";

@Component({
selector: "bl-info-box",
template: `
<div class="infobox">
<div class="infobox-image"><i class="fa fa-info-circle fa-3" aria-hidden="true"></i></div>
<div class="infobox-text">{{message}}</div>
</div>`,
templateUrl: "info-box.html",
})
export class InfoBoxComponent {
@Input()
Expand Down
6 changes: 6 additions & 0 deletions desktop/src/@batch-flask/ui/info-box/info-box.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="infobox">
<div class="infobox-image">
<i class="fa fa-info-circle fa-3" aria-hidden="true" title="{{'info-box.infoIconTitle' | i18n}}"></i>
</div>
<div class="infobox-text">{{message}}</div>
</div>
2 changes: 2 additions & 0 deletions desktop/src/@batch-flask/ui/info-box/info-box.i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
info-box:
infoIconTitle: Information
3 changes: 2 additions & 1 deletion desktop/src/@batch-flask/ui/info-box/info-box.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { NgModule } from "@angular/core";
import { RouterModule } from "@angular/router";
import { InfoBoxComponent } from "./info-box.component";
import { I18nUIModule } from "../i18n";

const components = [
InfoBoxComponent,
Expand All @@ -10,7 +11,7 @@ const components = [
declarations: components,
entryComponents: [],
exports: [...components],
imports: [RouterModule],
imports: [RouterModule, I18nUIModule],
})

export class InfoBoxModule {
Expand Down

0 comments on commit 8c28aad

Please sign in to comment.