Remove default initialization of radio button
That was causing the "saved" state of the radio button
to be true, regardless of its actual value,
thereby rendering the mechanism that recognizes a change ineffective.
@@ -42,11 +42,10 @@ export class ApiTokenDetailsComponent implements OnInit, OnDestroy {
fb: FormBuilder,
private layoutFacade: LayoutFacadeService
) {
- const initialStatus: TokenStatus = 'active';
this.updateForm = fb.group({
// Must stay in sync with error checks in api-token-details.component.html
name: ['', [Validators.required, Validators.pattern(Regex.patterns.NON_BLANK)]],
- status: [initialStatus],
+ status: [],
projects: [[]]
});
}
