mirror of https://github.com/coder/coder.git
feat(coderd): WIP: add sftp to apps
This commit is contained in:
parent
f4c090bd62
commit
a8d4efb8ff
|
@ -461,6 +461,14 @@ func convertTemplateInsightsApps(usage database.GetTemplateInsightsRow, appUsage
|
|||
Icon: "/icon/terminal.svg",
|
||||
Seconds: usage.UsageSshSeconds,
|
||||
},
|
||||
{
|
||||
TemplateIDs: usage.SftpTemplateIds,
|
||||
Type: codersdk.TemplateAppsTypeBuiltin,
|
||||
DisplayName: codersdk.TemplateBuiltinAppDisplayNameSFTP,
|
||||
Slug: "sftp",
|
||||
Icon: "/icon/terminal.svg",
|
||||
Seconds: usage.UsageSftpSeconds,
|
||||
},
|
||||
}
|
||||
|
||||
// Use a stable sort, similarly to how we would sort in the query, note that
|
||||
|
|
|
@ -207,6 +207,7 @@ const (
|
|||
TemplateBuiltinAppDisplayNameJetBrains string = "JetBrains"
|
||||
TemplateBuiltinAppDisplayNameWebTerminal string = "Web Terminal"
|
||||
TemplateBuiltinAppDisplayNameSSH string = "SSH"
|
||||
TemplateBuiltinAppDisplayNameSFTP string = "SFTP"
|
||||
)
|
||||
|
||||
// TemplateAppUsage shows the usage of an app for one or more templates.
|
||||
|
|
Loading…
Reference in New Issue