diff --git a/dashboard/src/main/home/app-dashboard/app-view/AppHeader.tsx b/dashboard/src/main/home/app-dashboard/app-view/AppHeader.tsx
index 63bbf2c293..89c46215d9 100644
--- a/dashboard/src/main/home/app-dashboard/app-view/AppHeader.tsx
+++ b/dashboard/src/main/home/app-dashboard/app-view/AppHeader.tsx
@@ -184,7 +184,7 @@ const AppHeader: React.FC = () => {
}}
/>
{deploymentTarget.is_preview
- ? deploymentTarget.namespace
+ ? deploymentTarget.name
: s.git_branch}
@@ -199,6 +199,25 @@ const AppHeader: React.FC = () => {
{s.image.repository}
+ {deploymentTarget.is_preview && (
+ <>
+
+
+ Preview
+
+
+ {deploymentTarget.name}
+
+
+ >
+ )}
>
))
.otherwise(() => null)}
diff --git a/go.sum b/go.sum
index c4aec4f37a..f5e65fd22f 100644
--- a/go.sum
+++ b/go.sum
@@ -1563,8 +1563,6 @@ github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/polyfloyd/go-errorlint v0.0.0-20210722154253-910bb7978349/go.mod h1:wi9BfjxjF/bwiZ701TzmfKu6UKC357IOAtNr0Td0Lvw=
-github.com/porter-dev/api-contracts v0.2.158 h1:928I9vELiqntau4Yp8cVuX7FcLgo95Lv2uBVYj84is8=
-github.com/porter-dev/api-contracts v0.2.158/go.mod h1:VV5BzXd02ZdbWIPLVP+PX3GKawJSGQnxorVT2sUZALU=
github.com/porter-dev/api-contracts v0.2.159 h1:Ze4K0rm8p6sRMxaFW4Nb3dJuzz4NEMQ+UMXMtOKKRQ4=
github.com/porter-dev/api-contracts v0.2.159/go.mod h1:VV5BzXd02ZdbWIPLVP+PX3GKawJSGQnxorVT2sUZALU=
github.com/porter-dev/switchboard v0.0.3 h1:dBuYkiVLa5Ce7059d6qTe9a1C2XEORFEanhbtV92R+M=