mirror of
https://github.com/coder/code-server.git
synced 2026-05-28 07:59:34 +00:00
Add the ability to kill running VS Code instance
This commit is contained in:
@@ -124,7 +124,9 @@ export class MainHttpProvider extends HttpProvider {
|
||||
}
|
||||
|
||||
private getAppRows(apps: ReadonlyArray<Application>): string {
|
||||
return apps.length > 0 ? apps.map((app) => this.getAppRow(app)).join("\n") : `<div class="none">None</div>`
|
||||
return apps.length > 0
|
||||
? apps.map((app) => this.getAppRow(app)).join("\n")
|
||||
: `<div class="none">No applications are currently running.</div>`
|
||||
}
|
||||
|
||||
private getAppRow(app: Application): string {
|
||||
@@ -141,7 +143,7 @@ export class MainHttpProvider extends HttpProvider {
|
||||
app.sessionId
|
||||
? `<form class="kill-form" action="./delete" method="POST">
|
||||
<input type="hidden" name="sessionId" value="${app.sessionId}">
|
||||
<button class="kill" type="submit">Kill</button>
|
||||
<button class="kill -button" type="submit">Kill</button>
|
||||
</form>`
|
||||
: ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user