Skip to content

Modular logistics and supply chain operating system (LSOS)

added translations for schedule monitor ui

Ronald A. Richardson73f56b7958fc
diff --git a/console/app/controllers/console/admin/organizations/index/users.js b/console/app/controllers/console/admin/organizations/index/users.js
index 6a6c1d4d..3dfcd0e5 100644
--- a/console/app/controllers/console/admin/organizations/index/users.js
+++ b/console/app/controllers/console/admin/organizations/index/users.js
@@ -60,7 +60,6 @@ export default class ConsoleAdminOrganizationsIndexUsersController extends Contr
*/
@tracked company;
-
/**
* The overlay context API.
*
diff --git a/console/app/templates/console/admin/schedule-monitor.hbs b/console/app/templates/console/admin/schedule-monitor.hbs
index 0854bc93..aeecfd2d 100644
--- a/console/app/templates/console/admin/schedule-monitor.hbs
+++ b/console/app/templates/console/admin/schedule-monitor.hbs
@@ -6,12 +6,12 @@
<table>
<thead>
<tr>
- <th {{set-width "300px"}}>Name</th>
- <th {{set-width "100px"}}>Type</th>
- <th {{set-width "90px"}}>Timezone</th>
- <th>Last Started</th>
- <th>Last Finished</th>
- <th>Last Failure</th>
+ <th {{set-width "300px"}}>{{t "console.admin.schedule-monitor.name"}}</th>
+ <th {{set-width "100px"}}>{{t "console.admin.schedule-monitor.type"}}</th>
+ <th {{set-width "90px"}}>{{t "console.admin.schedule-monitor.timezone"}}</th>
+ <th>{{t "console.admin.schedule-monitor.last-started"}}</th>
+ <th>{{t "console.admin.schedule-monitor.last-finished"}}</th>
+ <th>{{t "console.admin.schedule-monitor.last-failure"}}</th>
</tr>
</thead>
<tbody>
diff --git a/console/app/templates/console/admin/schedule-monitor/logs.hbs b/console/app/templates/console/admin/schedule-monitor/logs.hbs
index c9ee1dde..bcea809e 100644
--- a/console/app/templates/console/admin/schedule-monitor/logs.hbs
+++ b/console/app/templates/console/admin/schedule-monitor/logs.hbs
@@ -1,6 +1,6 @@
{{page-title (concat (t "console.admin.schedule-monitor.schedule-monitor") " - " @model.name)}}
<Overlay @isOpen={{true}} @onLoad={{this.setOverlayContext}} @position="right" @noBackdrop={{true}} @fullHeight={{true}} @width="600px" @isResizable={{true}}>
- <Overlay::Header @title={{concat (t "console.admin.schedule-monitor.task-logs-for") @model.name}} @hideStatusDot={{true}} @titleWrapperClass="leading-5">
+ <Overlay::Header @title={{concat (t "console.admin.schedule-monitor.task-logs-for") @model.name}} @titleClass="max-w-400px truncate" @hideStatusDot={{true}} @titleWrapperClass="leading-5">
<div class="flex flex-1 justify-end">
<Button @type="default" @icon="times" @helpText={{t "common.close-and-save"}} @onClick={{this.onPressClose}} />
</div>
@@ -15,11 +15,17 @@
<div class="space-y-4">
{{#each this.logs as |log|}}
<div class="bg-gray-100 border border-gray-200 dark:border-gray-700 dark:bg-gray-800 rounded-lg p-2 font-mono text-xs">
- <div class="font-mono"><span class="font-semibold font-mono">Date:</span> {{log.created_at_fmt}}</div>
- <div class="font-mono"><span class="font-semibold font-mono">Memory:</span> {{format-bytes log.meta.memory}}</div>
- <div class="font-mono"><span class="font-semibold font-mono">Runtime:</span> {{format-milliseconds log.meta.runtime}}</div>
- <div class="font-semibold font-mono mb-2">Output:</div>
- <div class="whitespace-pre overflow-hidden bg-black text-green-400 rounded-lg p-2 font-mono text-xs border border-gray-900">{{log.meta.output}}</div>
+ <div class="font-mono"><span class="font-semibold font-mono">{{t "console.admin.schedule-monitor.date"}}:</span> {{log.created_at_fmt}}</div>
+ <div class="font-mono"><span class="font-semibold font-mono">{{t "console.admin.schedule-monitor.memory"}}:</span> {{format-bytes log.meta.memory}}</div>
+ <div class="font-mono"><span class="font-semibold font-mono">{{t "console.admin.schedule-monitor.runtime"}}:</span> {{format-milliseconds log.meta.runtime}}</div>
+ <div class="font-semibold font-mono mb-2">{{t "console.admin.schedule-monitor.output"}}:</div>
+ <div class="whitespace-pre-line overflow-hidden bg-black text-green-400 rounded-lg p-2 font-mono text-xs border border-gray-900">
+ {{#if log.meta.output}}
+ {{log.meta.output}}
+ {{else}}
+ {{t "console.admin.schedule-monitor.no-output"}}
+ {{/if}}
+ </div>
</div>
{{/each}}
</div>
diff --git a/console/translations/en-us.yaml b/console/translations/en-us.yaml
index 1e55e09d..0f2ca857 100644
--- a/console/translations/en-us.yaml
+++ b/console/translations/en-us.yaml
@@ -209,6 +209,17 @@ console:
task-logs-for: >-
Task Logs For:
showing-last-count: Showing last {count} logs
+ name: Name
+ type: Type
+ timezone: Timezone
+ last-started: Last Started
+ last-finished: Last Finished
+ last-failure: Last Failure
+ date: Date
+ memory: Memory
+ runtime: Runtime
+ output: Output
+ no-output: No output
config:
database:
title: Database Configuration