Display a message in the "previous Splatfests" dialog when results aren't available yet

This commit is contained in:
Matt Isenhower 2018-03-02 18:46:49 -08:00
parent f62f20f08f
commit 783b2ed7b4

View File

@ -40,6 +40,10 @@
:results="info.results"
:historyMode="true"
/>
<div v-else-if="info.festival.times.result > now" class="has-text-centered font-splatoon2 is-size-5">
{{ info.festival.times.result - now | duration | resultsIn }}
</div>
</div>
</div>
</div>
@ -50,6 +54,7 @@
</template>
<script>
import Vue from 'vue';
import analytics from '@/js/analytics';
import regions from '@/js/regions';
import Modal from '@/js/components/Modal.vue';
@ -60,6 +65,11 @@ import SplatfestResultsBox from './SplatfestResultsBox.vue';
export default {
components: { Modal, Dropdown, SplatfestBox, SplatfestResultsBox },
props: ['allFestivals', 'now', 'initialRegion'],
filters: {
resultsIn(time) {
return Vue.i18n.translate('splatfest.results_in', { time });
},
},
data() {
return {
region: 'na',