2026-10-25 05:59:18 +01:00
|
|
|
@inject UiText Text
|
|
|
|
|
@inject UiLanguageService Language
|
|
|
|
|
@implements IDisposable
|
|
|
|
|
|
|
|
|
|
<script type="module" src="@Assets["Components/Layout/ReconnectModal.razor.js"]"></script>
|
2026-07-16 19:09:28 +00:00
|
|
|
|
|
|
|
|
<dialog id="components-reconnect-modal" data-nosnippet>
|
|
|
|
|
<div class="components-reconnect-container">
|
|
|
|
|
<div class="components-rejoining-animation" aria-hidden="true">
|
|
|
|
|
<div></div>
|
|
|
|
|
<div></div>
|
|
|
|
|
</div>
|
|
|
|
|
<p class="components-reconnect-first-attempt-visible">
|
2026-10-25 05:59:18 +01:00
|
|
|
@Text["ReconnectModal_Rejoining"]
|
2026-07-16 19:09:28 +00:00
|
|
|
</p>
|
|
|
|
|
<p class="components-reconnect-repeated-attempt-visible">
|
2026-10-25 05:59:18 +01:00
|
|
|
@Text["ReconnectModal_RetryCountdownPrefix"] <span id="components-seconds-to-next-attempt"></span> @Text["ReconnectModal_RetryCountdownSuffix"]
|
2026-07-16 19:09:28 +00:00
|
|
|
</p>
|
|
|
|
|
<p class="components-reconnect-failed-visible">
|
2026-10-25 05:59:18 +01:00
|
|
|
@Text["ReconnectModal_RejoinFailed"]<br />@Text["ReconnectModal_RetryOrReload"]
|
2026-07-16 19:09:28 +00:00
|
|
|
</p>
|
|
|
|
|
<button id="components-reconnect-button" class="components-reconnect-failed-visible">
|
2026-10-25 05:59:18 +01:00
|
|
|
@Text["ReconnectModal_Retry"]
|
2026-07-16 19:09:28 +00:00
|
|
|
</button>
|
|
|
|
|
<p class="components-pause-visible">
|
2026-10-25 05:59:18 +01:00
|
|
|
@Text["ReconnectModal_Paused"]
|
2026-07-16 19:09:28 +00:00
|
|
|
</p>
|
|
|
|
|
<p class="components-resume-failed-visible">
|
2026-10-25 05:59:18 +01:00
|
|
|
@Text["ReconnectModal_ResumeFailed"]<br />@Text["ReconnectModal_RetryOrReload"]
|
2026-07-16 19:09:28 +00:00
|
|
|
</p>
|
|
|
|
|
<button id="components-resume-button" class="components-pause-visible components-resume-failed-visible">
|
2026-10-25 05:59:18 +01:00
|
|
|
@Text["ReconnectModal_Resume"]
|
2026-07-16 19:09:28 +00:00
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</dialog>
|
2026-10-25 05:59:18 +01:00
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
protected override void OnInitialized() => Language.LanguageChanged += OnLanguageChanged;
|
|
|
|
|
|
|
|
|
|
private void OnLanguageChanged() => _ = InvokeAsync(StateHasChanged);
|
|
|
|
|
|
|
|
|
|
public void Dispose() => Language.LanguageChanged -= OnLanguageChanged;
|
|
|
|
|
}
|