Show template.display_name in the site UI (#5069)

* Show display_name field in the template settings

* Show template.display_name on pages: Templates, CreateWorkspace

* Fix: template.display_name pattern

* make fmt/prettier

* Fix tests

* Fix: make fmt/prettier

* Fix: merge

* Fix: autoFocus

* i18n: display_name
This commit is contained in:
Marcin Tojek
2022-11-14 21:11:50 +01:00
committed by GitHub
parent e872e18883
commit 49b340e039
12 changed files with 88 additions and 22 deletions
+3 -2
View File
@@ -218,8 +218,9 @@ func TestTemplateEdit(t *testing.T) {
// Properties don't change
assert.Equal(t, template.Name, updated.Name)
assert.Equal(t, template.Description, updated.Description)
assert.Equal(t, template.DisplayName, updated.DisplayName)
// Icon is removed, as the API considers it as "delete" request
// These properties are removed, as the API considers it as "delete" request
// See: https://github.com/coder/coder/issues/5066
assert.Equal(t, "", updated.Icon)
assert.Equal(t, "", updated.DisplayName)
})
}