diff --git a/frontend/components/auction/debt/DebtAuctionsTable.stories.js b/frontend/components/auction/debt/DebtAuctionsTable.stories.js
index d5b8ca66f..feff7ec5e 100644
--- a/frontend/components/auction/debt/DebtAuctionsTable.stories.js
+++ b/frontend/components/auction/debt/DebtAuctionsTable.stories.js
@@ -12,6 +12,7 @@ const common = {
auctions: fakeAuctions,
selectedAuctionId: randomSelectedAuction.id,
lastUpdated: new Date(faker.date.recent()),
+ isLoading: false,
}),
};
@@ -21,6 +22,20 @@ storiesOf('Auction/Debt/DebtAuctionsTable', module)
template:
'
',
}))
+ .add('Reset Updated Timer', () => ({
+ ...common,
+ created() {
+ setInterval(() => {
+ this.isLoading = true;
+ setTimeout(() => {
+ this.isLoading = false;
+ }, 1000);
+ this.lastUpdated = new Date(faker.date.recent());
+ }, 10 * 1000);
+ },
+ template:
+ '
',
+ }))
.add('Fetching With Auctions', () => ({
...common,
template: '
',
diff --git a/frontend/components/auction/debt/DebtAuctionsTable.vue b/frontend/components/auction/debt/DebtAuctionsTable.vue
index 31e6cc49c..c2836abb5 100644
--- a/frontend/components/auction/debt/DebtAuctionsTable.vue
+++ b/frontend/components/auction/debt/DebtAuctionsTable.vue
@@ -10,6 +10,8 @@
:custom-row="customRowEvents"
:get-popup-container="() => $el"
:locale="{ emptyText: 'No active auctions' }"
+ :table-layout="auto"
+ :scroll="{ x: 'max-content' }"
class="AuctionsTable relative overflow-visible"
>
@@ -45,15 +47,15 @@
Requires Restart
Collectable since
Expires in
-
+
Updating...
-
Last updated
-
Last updated unknown time ago
+
Updated
+
Updated unknown time ago
Updating...
-
+
diff --git a/frontend/components/auction/surplus/SurplusAuctionsTable.stories.js b/frontend/components/auction/surplus/SurplusAuctionsTable.stories.js
index 9639e8a5b..0d800af70 100644
--- a/frontend/components/auction/surplus/SurplusAuctionsTable.stories.js
+++ b/frontend/components/auction/surplus/SurplusAuctionsTable.stories.js
@@ -12,6 +12,7 @@ const common = {
auctions: fakeAuctions,
selectedAuctionId: randomSelectedAuction.id,
lastUpdated: new Date(faker.date.recent()),
+ isLoading: false,
}),
};
@@ -21,6 +22,20 @@ storiesOf('Auction/Surplus/SurplusAuctionsTable', module)
template:
'
',
}))
+ .add('Reset Updated Timer', () => ({
+ ...common,
+ created() {
+ setInterval(() => {
+ this.isLoading = true;
+ setTimeout(() => {
+ this.isLoading = false;
+ }, 1000);
+ this.lastUpdated = new Date(faker.date.recent());
+ }, 10 * 1000);
+ },
+ template:
+ '
',
+ }))
.add('Fetching With Auctions', () => ({
...common,
template: '
',
diff --git a/frontend/components/auction/surplus/SurplusAuctionsTable.vue b/frontend/components/auction/surplus/SurplusAuctionsTable.vue
index 5ece97514..39fc6beea 100644
--- a/frontend/components/auction/surplus/SurplusAuctionsTable.vue
+++ b/frontend/components/auction/surplus/SurplusAuctionsTable.vue
@@ -10,6 +10,8 @@
:custom-row="customRowEvents"
:get-popup-container="() => $el"
:locale="{ emptyText: 'No active auctions' }"
+ :table-layout="auto"
+ :scroll="{ x: 'max-content' }"
class="AuctionsTable relative overflow-visible"
>
@@ -48,8 +50,8 @@
Updating...
-
Last updated
-
Last updated unknown time ago
+
Updated
+
Updated unknown time ago
`,
+ }))
+ .add('Recent Past', () => ({
+ components: { TimeTill },
+ data: () => ({
+ date: faker.date.recent(),
+ }),
+ template: `
`,
+ }))
+ .add('Late Past', () => ({
+ components: { TimeTill },
+ data: () => ({
+ date: faker.date.past(),
+ }),
+ template: `
`,
}));
diff --git a/frontend/components/common/formatters/TimeTill.vue b/frontend/components/common/formatters/TimeTill.vue
index 128f7ccdb..c0ae39c2f 100644
--- a/frontend/components/common/formatters/TimeTill.vue
+++ b/frontend/components/common/formatters/TimeTill.vue
@@ -41,7 +41,6 @@ export default Vue.extend({
if (this.parsedDate) {
const now = new Date();
this.timeTill = formatInterval(now, this.parsedDate);
-
const duration = this.parsedDate.getTime() - now.getTime();
this.isEndingSoon = duration < ENDING_SOON_THRESHOLD && duration > 0;
} else {
diff --git a/frontend/components/panels/CollectAuctionPanel.vue b/frontend/components/panels/CollectAuctionPanel.vue
index e404a435c..9640ecfbb 100644
--- a/frontend/components/panels/CollectAuctionPanel.vue
+++ b/frontend/components/panels/CollectAuctionPanel.vue
@@ -2,7 +2,7 @@
{{ currentStateAndTitle.title }}
-
+
diff --git a/frontend/components/vault/VaultsTable.stories.js b/frontend/components/vault/VaultsTable.stories.js
index d9add5e42..ed98bd011 100644
--- a/frontend/components/vault/VaultsTable.stories.js
+++ b/frontend/components/vault/VaultsTable.stories.js
@@ -12,6 +12,7 @@ const common = {
vaultTransactions: fakeVaultTransaction,
selectedVaultId: randomSelectedVault.id,
lastUpdated: new Date(faker.date.recent()),
+ isLoading: false,
}),
};
@@ -21,6 +22,20 @@ storiesOf('Vault/VaultsTable', module)
template:
'',
}))
+ .add('Reset Updated Timer', () => ({
+ ...common,
+ created() {
+ setInterval(() => {
+ this.isLoading = true;
+ setTimeout(() => {
+ this.isLoading = false;
+ }, 1000);
+ this.lastUpdated = new Date(faker.date.recent());
+ }, 10 * 1000);
+ },
+ template:
+ '',
+ }))
.add('Fetching With Vaults', () => ({
...common,
template:
diff --git a/frontend/components/vault/VaultsTable.vue b/frontend/components/vault/VaultsTable.vue
index 2e89e944a..b8d44d7e4 100644
--- a/frontend/components/vault/VaultsTable.vue
+++ b/frontend/components/vault/VaultsTable.vue
@@ -10,6 +10,8 @@
:custom-row="customRowEvents"
:get-popup-container="() => $el"
:locale="{ emptyText: 'There are currently no vaults at risk.' }"
+ :table-layout="auto"
+ :scroll="{ x: 'max-content' }"
class="VaultsTable relative overflow-visible"
>
@@ -44,8 +46,8 @@
Updating...
- Last updated
- Last updated unknown time ago
+ Updated
+ Updated unknown time ago