1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

feat: min and max option for random floats and numbers

This commit is contained in:
2021-02-16 19:13:20 +01:00
parent 9d5ebefdce
commit 6c62052b47
6 changed files with 46 additions and 18 deletions

View File

@ -33,16 +33,15 @@
</div>
</div>
<button class="btn btn-dark btn-sm" @click="showAddModal">
<span>{{ $t('word.add') }}</span>
<button
v-if="isTable"
class="btn btn-dark btn-sm"
@click="showFakerModal"
>
<span>{{ $t('message.tableFiller') }}</span>
<i class="mdi mdi-24px mdi-playlist-plus ml-1" />
</button>
<button class="btn btn-dark btn-sm" @click="showFakerModal">
<span>{{ $t('word.faker') }}</span>
<i class="mdi mdi-24px mdi-drama-masks ml-1" />
</button>
<div class="dropdown export-dropdown pr-2">
<button
:disabled="isQuering"
@ -151,6 +150,9 @@ export default {
isSelected () {
return this.workspace.selected_tab === 'data';
},
isTable () {
return !!this.workspace.breadcrumbs.table;
},
fields () {
return this.results.length ? this.results[0].fields : [];
},