components-reconnect-refused to components-reconnect-rejected (#13659)
components-reconnect-refused to components-reconnect-rejected
This commit is contained in:
parent
c9505a2911
commit
7349b19e1e
File diff suppressed because one or more lines are too long
|
|
@ -6,7 +6,7 @@ export class UserSpecifiedDisplay implements ReconnectDisplay {
|
|||
|
||||
static readonly FailedClassName = 'components-reconnect-failed';
|
||||
|
||||
static readonly RefusedClassName = 'components-reconnect-refused';
|
||||
static readonly RejectedClassName = 'components-reconnect-rejected';
|
||||
|
||||
constructor(private dialog: HTMLElement) {
|
||||
}
|
||||
|
|
@ -25,13 +25,13 @@ export class UserSpecifiedDisplay implements ReconnectDisplay {
|
|||
this.removeClasses();
|
||||
this.dialog.classList.add(UserSpecifiedDisplay.FailedClassName);
|
||||
}
|
||||
|
||||
|
||||
rejected(): void {
|
||||
this.removeClasses();
|
||||
this.dialog.classList.add(UserSpecifiedDisplay.RefusedClassName);
|
||||
this.dialog.classList.add(UserSpecifiedDisplay.RejectedClassName);
|
||||
}
|
||||
|
||||
private removeClasses() {
|
||||
this.dialog.classList.remove(UserSpecifiedDisplay.ShowClassName, UserSpecifiedDisplay.HideClassName, UserSpecifiedDisplay.FailedClassName, UserSpecifiedDisplay.RefusedClassName);
|
||||
this.dialog.classList.remove(UserSpecifiedDisplay.ShowClassName, UserSpecifiedDisplay.HideClassName, UserSpecifiedDisplay.FailedClassName, UserSpecifiedDisplay.RejectedClassName);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue