fix
This commit is contained in:
@@ -331,6 +331,9 @@ const gameOptions = computed(() => {
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
<n-alert v-if="state.materialsWarning" type="warning" role="status" data-testid="materials-warning">
|
||||
{{ state.materialsWarning }}
|
||||
</n-alert>
|
||||
<p v-if="state.preparation.active" role="status" data-testid="materials-progress">
|
||||
Материалы: {{ state.preparation.completed }}/{{ state.preparation.total }} ·
|
||||
{{ (state.preparation.downloadedBytes / 1048576).toFixed(1) }} МиБ
|
||||
|
||||
@@ -12,6 +12,7 @@ export function useOnlineConnection() {
|
||||
server: DEFAULT_SERVER,
|
||||
currentGameId: null,
|
||||
materials: [],
|
||||
materialsWarning: '',
|
||||
authenticated: false,
|
||||
remembered: false,
|
||||
busy: false,
|
||||
|
||||
@@ -41,6 +41,7 @@ export interface OnlineState {
|
||||
server: string
|
||||
currentGameId: number | null
|
||||
materials: GameMaterial[]
|
||||
materialsWarning: string
|
||||
authenticated: boolean
|
||||
remembered: boolean
|
||||
busy: boolean
|
||||
|
||||
Reference in New Issue
Block a user