Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Widgets/Status.vue
<template> | <template> | ||||
<div v-if="!state.isReady" id="status-box" :class="'p-4 mb-3 rounded process-' + className"> | <div v-if="!state.isReady" id="status-box" :class="'p-4 mb-3 rounded process-' + className"> | ||||
<div v-if="state.step != 'domain-confirmed'" class="d-flex align-items-start"> | <div v-if="state.step != 'domain-confirmed'" class="d-flex align-items-start"> | ||||
<p id="status-body" class="flex-grow-1"> | <p id="status-body" class="flex-grow-1"> | ||||
<span>{{ $t('status.prepare-' + scopeLabel()) }}</span> | <span>{{ $t('status.prepare-' + scopeLabel()) }}</span> | ||||
<br> | <br> | ||||
{{ $t('status.prepare-hint') }} | {{ $t('status.prepare-hint') }} | ||||
<br> | <br> | ||||
<span id="refresh-text" v-if="refresh">{{ $t('status.prepare-refresh') }}</span> | <span id="refresh-text" v-if="refresh">{{ $t('status.prepare-refresh') }}</span> | ||||
</p> | </p> | ||||
<button v-if="refresh" id="status-refresh" href="#" class="btn btn-secondary" @click="statusRefresh"> | <btn v-if="refresh" id="status-refresh" href="#" class="btn-secondary" @click="statusRefresh" icon="sync-alt"> | ||||
<svg-icon icon="sync-alt"></svg-icon> {{ $t('btn.refresh') }} | {{ $t('btn.refresh') }} | ||||
</button> | </btn> | ||||
</div> | </div> | ||||
<div v-else class="d-flex align-items-start"> | <div v-else class="d-flex align-items-start"> | ||||
<p id="status-body" class="flex-grow-1"> | <p id="status-body" class="flex-grow-1"> | ||||
<span>{{ $t('status.ready-' + scopeLabel()) }}</span> | <span>{{ $t('status.ready-' + scopeLabel()) }}</span> | ||||
<br> | <br> | ||||
{{ $t('status.verify') }} | {{ $t('status.verify') }} | ||||
</p> | </p> | ||||
<div v-if="scope == 'domain'"> | <div v-if="scope == 'domain'"> | ||||
<button id="status-verify" class="btn btn-secondary text-nowrap" @click="confirmDomain"> | <btn id="status-verify" class="btn-secondary text-nowrap" @click="confirmDomain" icon="sync-alt"> | ||||
<svg-icon icon="sync-alt"></svg-icon> {{ $t('btn.verify') }} | {{ $t('btn.verify') }} | ||||
</button> | </btn> | ||||
</div> | </div> | ||||
<div v-else-if="state.link && scope != 'domain'"> | <div v-else-if="state.link && scope != 'domain'"> | ||||
<router-link id="status-link" class="btn btn-secondary" :to="{ path: state.link }">{{ $t('status.verify-domain') }}</router-link> | <router-link id="status-link" class="btn btn-secondary" :to="{ path: state.link }">{{ $t('status.verify-domain') }}</router-link> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="status-progress text-center"> | <div class="status-progress text-center"> | ||||
<div class="progress"> | <div class="progress"> | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |