Skip to content

Commit

Permalink
fix: WR-258 styling activity page (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikdepeuter authored Dec 21, 2023
1 parent 17a1449 commit a0cedd5
Showing 1 changed file with 30 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<li class="vl-step vl-step" v-for="activity in activities" :key="activity.id">
<div class="vl-step__container">
<div class="vl-step__icon">
{{ activity.changeFeedEntry.day }}
<span class="vl-step__icon__sub">{{ activity.changeFeedEntry.day }}</span>
<span class="vl-step__icon__sub">{{ activity.changeFeedEntry.month }}</span>
<span class="vl-step__icon__sub">{{ activity.changeFeedEntry.timeOfDay }}</span>
</div>
Expand Down Expand Up @@ -56,25 +56,17 @@
].some((x) => x === activity.changeFeedEntry.type)
"
>
<vl-button v-if="isDownloading" mod-loading>
Download...
</vl-button>
<vl-button v-else @click="downloadUpload(activity)">
Download
</vl-button>
<vl-button v-if="isDownloading" mod-loading> Download... </vl-button>
<vl-button v-else @click="downloadUpload(activity)"> Download </vl-button>
</div>
<div
v-else-if="
activity.changeFeedContent.content.archive.id &&
['RoadNetworkExtractDownloadBecameAvailable'].some((x) => x === activity.changeFeedEntry.type)
"
>
<vl-button v-if="isDownloading" mod-loading>
Download...
</vl-button>
<vl-button v-else @click="downloadExtract(activity)">
Download
</vl-button>
<vl-button v-if="isDownloading" mod-loading> Download... </vl-button>
<vl-button v-else @click="downloadExtract(activity)"> Download </vl-button>
</div>

<div
Expand All @@ -98,12 +90,8 @@
<br />
</div>
<div v-if="activity.changeFeedContent.content.archive.id">
<vl-button v-if="isDownloading" mod-loading>
Download...
</vl-button>
<vl-button v-else @click="downloadUpload(activity)">
Download
</vl-button>
<vl-button v-if="isDownloading" mod-loading> Download... </vl-button>
<vl-button v-else @click="downloadUpload(activity)"> Download </vl-button>
</div>
</div>
<div
Expand Down Expand Up @@ -209,12 +197,8 @@
<br />
</div>
<div v-if="activity.changeFeedContent.content.archive.id">
<vl-button v-if="isDownloading" mod-loading>
Download...
</vl-button>
<vl-button v-else @click="downloadUpload(activity)">
Download
</vl-button>
<vl-button v-if="isDownloading" mod-loading> Download... </vl-button>
<vl-button v-else @click="downloadUpload(activity)"> Download </vl-button>
</div>
</div>
<div v-else-if="['RoadNetworkChangesRejected'].some((x) => x === activity.changeFeedEntry.type)">
Expand All @@ -226,12 +210,8 @@
<br />
</div>
<div v-if="activity.changeFeedContent.content.archive.id">
<vl-button v-if="isDownloading" mod-loading>
Download...
</vl-button>
<vl-button v-else @click="downloadUpload(activity)">
Download
</vl-button>
<vl-button v-if="isDownloading" mod-loading> Download... </vl-button>
<vl-button v-else @click="downloadUpload(activity)"> Download </vl-button>
</div>
</div>
</div>
Expand Down Expand Up @@ -295,14 +275,14 @@ export default Vue.extend({
this.autoRefreshInterval = setInterval(this.loadToTop, 10000);
},
beforeDestroy() {
if(this.autoRefreshInterval){
if (this.autoRefreshInterval) {
clearInterval(this.autoRefreshInterval);
}
},
methods: {
async loadToTop(): Promise<any> {
if (this.pagination.isLoadingTop) {
console.warn('Skipping load, loading is still in progress');
console.warn("Skipping load, loading is still in progress");
return;
}
Expand All @@ -318,7 +298,7 @@ export default Vue.extend({
if (firstActivityInReceivedData) {
let index = activities.indexOf(firstActivityInReceivedData);
activities = activities.slice(0, index);
if (!activities.length){
if (!activities.length) {
return;
}
} else {
Expand All @@ -334,7 +314,7 @@ export default Vue.extend({
},
async loadNextPage(): Promise<any> {
if (this.pagination.isLoading) {
console.warn('Skipping load, loading is still in progress');
console.warn("Skipping load, loading is still in progress");
return;
}
Expand Down Expand Up @@ -444,4 +424,19 @@ class Activity {
margin-left: 0px;
padding-bottom: 10px;
}
.vl-steps--timeline {
.vl-step__container::after {
top: 6rem;
}
.vl-step__icon {
height: 6rem;
.vl-step__icon__sub {
font-weight: 500;
font-size: 1.8rem;
}
}
}
</style>

0 comments on commit a0cedd5

Please sign in to comment.