mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
remove kill button from header
This commit is contained in:
parent
21c3d36435
commit
9ed9b7d32e
1 changed files with 0 additions and 31 deletions
|
|
@ -14,7 +14,6 @@ import './notification-status.js';
|
||||||
export class FullHeader extends HeaderBase {
|
export class FullHeader extends HeaderBase {
|
||||||
render() {
|
render() {
|
||||||
const runningSessions = this.runningSessions;
|
const runningSessions = this.runningSessions;
|
||||||
const exitedSessions = this.exitedSessions;
|
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div
|
<div
|
||||||
|
|
@ -47,7 +46,6 @@ export class FullHeader extends HeaderBase {
|
||||||
@open-settings=${() =>
|
@open-settings=${() =>
|
||||||
this.dispatchEvent(new CustomEvent('open-notification-settings'))}
|
this.dispatchEvent(new CustomEvent('open-notification-settings'))}
|
||||||
></notification-status>
|
></notification-status>
|
||||||
${this.renderActionButtons(exitedSessions, runningSessions)}
|
|
||||||
<button
|
<button
|
||||||
class="btn-secondary font-mono text-sm px-3 sm:px-5 py-2.5"
|
class="btn-secondary font-mono text-sm px-3 sm:px-5 py-2.5"
|
||||||
@click=${() => this.dispatchEvent(new CustomEvent('open-file-browser'))}
|
@click=${() => this.dispatchEvent(new CustomEvent('open-file-browser'))}
|
||||||
|
|
@ -77,35 +75,6 @@ export class FullHeader extends HeaderBase {
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
private renderActionButtons(_exitedSessions: Session[], runningSessions: Session[]) {
|
|
||||||
return html`
|
|
||||||
${
|
|
||||||
runningSessions.length > 0 && !this.killingAll
|
|
||||||
? html`
|
|
||||||
<button
|
|
||||||
class="btn-secondary font-mono text-sm px-5 py-2.5 text-status-error border-status-error hover:bg-status-error hover:text-dark-bg"
|
|
||||||
@click=${this.handleKillAll}
|
|
||||||
>
|
|
||||||
Kill All (${runningSessions.length})
|
|
||||||
</button>
|
|
||||||
`
|
|
||||||
: ''
|
|
||||||
}
|
|
||||||
${
|
|
||||||
this.killingAll
|
|
||||||
? html`
|
|
||||||
<div class="flex items-center gap-2 px-5 py-2.5">
|
|
||||||
<div
|
|
||||||
class="w-4 h-4 border-2 border-status-error border-t-transparent rounded-full animate-spin"
|
|
||||||
></div>
|
|
||||||
<span class="text-status-error font-mono text-sm">Killing...</span>
|
|
||||||
</div>
|
|
||||||
`
|
|
||||||
: ''
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
}
|
|
||||||
|
|
||||||
private renderUserMenu() {
|
private renderUserMenu() {
|
||||||
if (!this.currentUser) return '';
|
if (!this.currentUser) return '';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue