Skip to content

Commit

Permalink
fix(reports): show report history when 1 result, shorten current repo…
Browse files Browse the repository at this point in the history
…rt name
  • Loading branch information
popstas committed Dec 24, 2020
1 parent 5f6a15d commit d156307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ReportHistory.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="report-history" v-if="jsonUrlHistoryCount > 1">
<div class="report-history" v-if="jsonUrlHistoryCount > 0">
<el-select class="report-history__sort" v-model="currentJsonSort" size="mini">
<el-option value="url" label="sort by name">name</el-option>
<el-option value="added" label="sort by date">date</el-option>
Expand All @@ -9,7 +9,7 @@
<el-select size="mini" class="report-history__select" filterable placeholder="Report URL" v-model="itemsJsonUrl">
<el-option class="report-history__option"
v-for="option in options" :key="option.url"
:value="option.url">
:value="option.url" :label="shortReportUrl(option.url)">
<a @click.prevent="" class="report-history__value-name" :href="getShareUrl(option.url)">{{ shortReportUrl(option.url) }}</a>
<span class="report-history__value-date">{{ new Date(option.added).toLocaleString() }}</span>
</el-option>
Expand Down

0 comments on commit d156307

Please sign in to comment.