feat: Add start miner button to profile list for improved user interaction

This commit is contained in:
Snider 2025-12-11 15:01:43 +00:00
parent 52b4a1c6eb
commit aefe328254
2 changed files with 5 additions and 0 deletions

View file

@ -49,6 +49,7 @@
} @else {
<span>{{ profile.name }} ({{ profile.minerType }})</span>
<div class="button-group">
<wa-button size="small" variant="primary" (click)="startMiner(profile.id)">Start</wa-button>
<wa-button size="small" (click)="editProfile(profile)">Edit</wa-button>
<wa-button size="small" variant="danger" (click)="deleteProfile(profile.id)">Delete</wa-button>
</div>

View file

@ -54,6 +54,10 @@ export class ProfileListComponent {
}
}
startMiner(profileId: string) {
this.minerService.startMiner(profileId).subscribe();
}
deleteProfile(profileId: string) {
this.minerService.deleteProfile(profileId).subscribe();
}