Proyecto App Windows

This commit is contained in:
2026-05-03 23:36:48 +02:00
commit 96793b2e1e
1248 changed files with 189750 additions and 0 deletions
@@ -0,0 +1,28 @@
import { Injectable, signal } from '@angular/core';
import { WorkspaceHeaderCommandMetadata } from './workspace-view-command.types';
export interface WorkspaceHeaderAction {
id: string;
icon: string;
tooltipKey: string;
ariaLabelKey: string;
run: () => void;
palette?: WorkspaceHeaderCommandMetadata;
}
@Injectable({ providedIn: 'root' })
export class WorkspaceHeaderContextService {
readonly action = signal<WorkspaceHeaderAction | null>(null);
setAction(action: WorkspaceHeaderAction): void {
this.action.set(action);
}
clearAction(id?: string): void {
if (id && this.action()?.id !== id) {
return;
}
this.action.set(null);
}
}