2020-10-24 18:04:01 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div class="mb-2">
|
|
|
|
<label class="mr-auto h3">Pair Locks</label>
|
|
|
|
<b-button class="float-right" size="sm" @click="getLocks">↻</b-button>
|
|
|
|
</div>
|
|
|
|
<div>
|
2020-10-25 10:36:22 +00:00
|
|
|
<b-table class="table-sm" :items="currentLocks" :fields="tableFields"> </b-table>
|
2020-10-24 18:04:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { timestampms } from '@/shared/formatters';
|
2020-10-25 10:36:22 +00:00
|
|
|
import { BotStoreGetters } from '@/store/modules/ftbot';
|
|
|
|
import { Lock } from '@/types';
|
2020-10-24 18:04:01 +00:00
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
import { namespace } from 'vuex-class';
|
|
|
|
|
|
|
|
const ftbot = namespace('ftbot');
|
|
|
|
|
|
|
|
@Component({})
|
|
|
|
export default class PairLockList extends Vue {
|
|
|
|
@ftbot.Action getLocks;
|
|
|
|
|
2020-10-25 10:36:22 +00:00
|
|
|
@ftbot.Getter [BotStoreGetters.currentLocks]!: Lock;
|
2020-10-24 18:04:01 +00:00
|
|
|
|
|
|
|
timestampms = timestampms;
|
|
|
|
|
|
|
|
get tableFields() {
|
|
|
|
return [
|
|
|
|
{ key: 'pair', label: 'Pair' },
|
|
|
|
{ key: 'lock_end_timestamp', label: 'Until', formatter: 'timestampms' },
|
|
|
|
{ key: 'reason', label: 'Reason' },
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped></style>
|