diff --git a/ui/app/components/resources-table-extended.hbs b/ui/app/components/resources-table-extended.hbs
index 826b363a00d..391cc500b6d 100644
--- a/ui/app/components/resources-table-extended.hbs
+++ b/ui/app/components/resources-table-extended.hbs
@@ -13,17 +13,17 @@
- Name |
- Type |
- Age |
- Status |
- Provisioned by |
+ {{t "page.resources.table.headings.name"}} |
+ {{t "page.resources.table.headings.type"}} |
+ {{t "page.resources.table.headings.age"}} |
+ {{t "page.resources.table.headings.status"}} |
+ {{t "page.resources.table.headings.provisioned-by"}} |
- {{#each @resources key="id" as |resourceObject|}}
- {{#with resourceObject.resource as |resource|}}
+ {{#each @resources key="resource.id" as |resourceObject|}}
+ {{#let resourceObject.resource as |resource|}}
- Deployment v{{resourceObject.source.sequence}}
+ {{t "page.resources.table.deployment"}} v{{resourceObject.source.sequence}}
{{/if}}
{{#if (eq resourceObject.type 'release')}}
@@ -53,12 +53,12 @@
@route="workspace.projects.project.app.release-id"
@models={{array resourceObject.source.sequence}}
>
- Release v{{resourceObject.source.sequence}}
+ {{t "page.resources.table.release"}}v{{resourceObject.source.sequence}}
{{/if}}
|
- {{/with}}
+ {{/let}}
{{/each}}
diff --git a/ui/app/components/resources-table.hbs b/ui/app/components/resources-table.hbs
index fc2ee0e1667..6b970c8eaa4 100644
--- a/ui/app/components/resources-table.hbs
+++ b/ui/app/components/resources-table.hbs
@@ -13,10 +13,10 @@
- Name |
- Type |
- Age |
- Status |
+ {{t "page.resources.table.headings.name"}} |
+ {{t "page.resources.table.headings.type"}} |
+ {{t "page.resources.table.headings.age"}} |
+ {{t "page.resources.table.headings.status"}} |
diff --git a/ui/app/routes/workspace/projects/project/app/resources.ts b/ui/app/routes/workspace/projects/project/app/resources.ts
index 8f6ec94a7b1..3648421a963 100644
--- a/ui/app/routes/workspace/projects/project/app/resources.ts
+++ b/ui/app/routes/workspace/projects/project/app/resources.ts
@@ -4,7 +4,7 @@ import { Model as AppRouteModel } from '../app';
import Route from '@ember/routing/route';
import { StatusReport } from 'waypoint-pb';
-type Model = AppRouteModel['deployments'];
+type Model = ResourceMap[];
interface ResourceMap {
resource: StatusReport.Resource.AsObject;
diff --git a/ui/app/templates/workspace/projects/project/app/resources.hbs b/ui/app/templates/workspace/projects/project/app/resources.hbs
index c7a56305fdc..c1fa1fabdb3 100644
--- a/ui/app/templates/workspace/projects/project/app/resources.hbs
+++ b/ui/app/templates/workspace/projects/project/app/resources.hbs
@@ -1,8 +1,7 @@
{{#if @model.length}}
-
+ />
{{else}}
{{t 'page.resources.table.empty-state.line-1'}}
diff --git a/ui/translations/en-us.yaml b/ui/translations/en-us.yaml
index c3e92712131..6b4f4b97390 100644
--- a/ui/translations/en-us.yaml
+++ b/ui/translations/en-us.yaml
@@ -82,11 +82,18 @@ page:
line-3: 'from the CLI'
resources:
table:
+ headings:
+ name: 'Name'
+ type: 'Type'
+ age: 'Age'
+ status: 'Status'
+ provisioned-by: 'Provisioned by'
empty-state:
line-1: 'There are no resources to display for this app yet'
line-2: 'To create your first release, you can run'
line-3: 'from the CLI'
- release:
+ release: 'Release'
+ deployment: 'Deployment'
title: 'Release'
resources:
heading: Resources