mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix: remove refresh button from transfer state tab (#63592)
TransferState is only written into the DOM once during SSR and is not kept in sync with the runtime state on the client. Pressing the refresh button always re-reads the initial serialized script tag, which never changes after bootstrap. PR Close #63592
This commit is contained in:
committed by
Andrew Scott
parent
948b8113ed
commit
ef025880cc
-5
@@ -4,11 +4,6 @@
|
||||
<mat-icon>swap_horiz</mat-icon>
|
||||
Transfer State
|
||||
</h2>
|
||||
<div class="actions">
|
||||
<button ng-button btnType="icon" (click)="refresh()" matTooltip="Refresh transfer state">
|
||||
<mat-icon>refresh</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (isLoading()) {
|
||||
|
||||
-12
@@ -26,18 +26,6 @@
|
||||
height: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
|
||||
button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.loading {
|
||||
|
||||
-4
@@ -142,10 +142,6 @@ export class TransferStateComponent {
|
||||
}
|
||||
}
|
||||
|
||||
refresh(): void {
|
||||
this.loadTransferState();
|
||||
}
|
||||
|
||||
isValueLong(element: HTMLElement, isExpanded: boolean = false): boolean {
|
||||
if (isExpanded) return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user