mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
fix(coderd): update icon url to the right one (#8718)
This commit is contained in:
@ -257,7 +257,7 @@ func convertTemplateInsightsBuiltinApps(usage database.GetTemplateInsightsRow) [
|
||||
Type: codersdk.TemplateAppsTypeBuiltin,
|
||||
DisplayName: "Visual Studio Code",
|
||||
Slug: "vscode",
|
||||
Icon: "/icons/code.svg",
|
||||
Icon: "/icon/code.svg",
|
||||
Seconds: usage.UsageVscodeSeconds,
|
||||
},
|
||||
{
|
||||
@ -265,7 +265,7 @@ func convertTemplateInsightsBuiltinApps(usage database.GetTemplateInsightsRow) [
|
||||
Type: codersdk.TemplateAppsTypeBuiltin,
|
||||
DisplayName: "JetBrains",
|
||||
Slug: "jetbrains",
|
||||
Icon: "/icons/intellij.svg",
|
||||
Icon: "/icon/intellij.svg",
|
||||
Seconds: usage.UsageJetbrainsSeconds,
|
||||
},
|
||||
{
|
||||
@ -273,7 +273,7 @@ func convertTemplateInsightsBuiltinApps(usage database.GetTemplateInsightsRow) [
|
||||
Type: codersdk.TemplateAppsTypeBuiltin,
|
||||
DisplayName: "Web Terminal",
|
||||
Slug: "reconnecting-pty",
|
||||
Icon: "/icons/terminal.svg",
|
||||
Icon: "/icon/terminal.svg",
|
||||
Seconds: usage.UsageReconnectingPtySeconds,
|
||||
},
|
||||
{
|
||||
@ -281,7 +281,7 @@ func convertTemplateInsightsBuiltinApps(usage database.GetTemplateInsightsRow) [
|
||||
Type: codersdk.TemplateAppsTypeBuiltin,
|
||||
DisplayName: "SSH",
|
||||
Slug: "ssh",
|
||||
Icon: "/icons/terminal.svg",
|
||||
Icon: "/icon/terminal.svg",
|
||||
Seconds: usage.UsageSshSeconds,
|
||||
},
|
||||
}
|
||||
|
@ -478,7 +478,7 @@ func TestPatchTemplateMeta(t *testing.T) {
|
||||
Name: "new-template-name",
|
||||
DisplayName: "Displayed Name 456",
|
||||
Description: "lorem ipsum dolor sit amet et cetera",
|
||||
Icon: "/icons/new-icon.png",
|
||||
Icon: "/icon/new-icon.png",
|
||||
DefaultTTLMillis: 12 * time.Hour.Milliseconds(),
|
||||
AllowUserCancelWorkspaceJobs: false,
|
||||
}
|
||||
@ -883,7 +883,7 @@ func TestPatchTemplateMeta(t *testing.T) {
|
||||
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
|
||||
template := coderdtest.CreateTemplate(t, client, user.OrganizationID, version.ID, func(ctr *codersdk.CreateTemplateRequest) {
|
||||
ctr.Description = "original description"
|
||||
ctr.Icon = "/icons/original-icon.png"
|
||||
ctr.Icon = "/icon/original-icon.png"
|
||||
ctr.DefaultTTLMillis = ptr.Ref(24 * time.Hour.Milliseconds())
|
||||
})
|
||||
|
||||
@ -950,7 +950,7 @@ func TestPatchTemplateMeta(t *testing.T) {
|
||||
user := coderdtest.CreateFirstUser(t, client)
|
||||
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
|
||||
template := coderdtest.CreateTemplate(t, client, user.OrganizationID, version.ID, func(ctr *codersdk.CreateTemplateRequest) {
|
||||
ctr.Icon = "/icons/code.png"
|
||||
ctr.Icon = "/icon/code.png"
|
||||
})
|
||||
req := codersdk.UpdateTemplateMeta{
|
||||
Icon: "",
|
||||
|
Reference in New Issue
Block a user