New button sync UDS
testing/ogGui-multibranch/pipeline/pr-main Build queued... Details
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details

pull/83/head
Manuel Aranda Rosales 2026-05-05 10:13:18 +02:00
parent e2b760007b
commit 69175f4752
3 changed files with 17 additions and 2 deletions

View File

@ -1791,6 +1791,17 @@ mat-button-toggle-group {
}
}
.sync-uds-button {
display: flex;
align-items: center;
}
.sync-uds-button mat-icon {
font-size: 18px;
width: 18px;
height: 18px;
}
.delete-button {
background-color: #f44336 !important;
color: white !important;

View File

@ -321,8 +321,8 @@
[runScriptContext]="getRunScriptContext(selection.selected)"></app-execute-command>
</div>
<button *ngIf="classroomCalendarUuid && !syncingUds" class="action-button" (click)="syncUds($event)"
[disabled]="!selectedNode?.remotePc"
<button *ngIf="classroomCalendarUuid && !syncingUds" class="action-button sync-uds-button" (click)="syncUds($event)"
[disabled]="!classroomHasRemotePc"
matTooltip="Sincronizar calendarios con UDS" matTooltipShowDelay="500">
<mat-icon>sync</mat-icon>
</button>

View File

@ -1385,6 +1385,10 @@ export class GroupsComponent implements OnInit, OnDestroy {
return (client as any)?.organizationalUnit?.remoteCalendar?.uuid || null;
}
get classroomHasRemotePc(): boolean {
return this.selectedClients.data.some((c: any) => c.organizationalUnit?.remotePc === true);
}
syncUds(event: MouseEvent): void {
event.stopPropagation();
const uuid = this.classroomCalendarUuid;