AvailableImportersModal now lists only those with manual colleciton setting when coming from Items Page.

This commit is contained in:
Mateus Machado Luna 2018-07-25 11:05:24 -03:00
parent ecc99ebd61
commit 11ae16ea53
2 changed files with 9 additions and 3 deletions

View File

@ -64,7 +64,7 @@
</th> </th>
<!-- Total Items --> <!-- Total Items -->
<th v-if="!isOnTrash"> <th v-if="!isOnTrash">
<div class="th-wrap">{{ $i18n.get('label_total_items') }}</div> <div class="th-wrap total-items-header">{{ $i18n.get('label_total_items') }}</div>
</th> </th>
<th class="actions-header"> <th class="actions-header">
&nbsp; &nbsp;
@ -400,6 +400,10 @@ export default {
border-radius: 50px !important; border-radius: 50px !important;
} }
.total-items-header {
text-align: right;
}
</style> </style>

View File

@ -14,6 +14,7 @@
class="importer-type" class="importer-type"
v-for="importerType in availableImporters" v-for="importerType in availableImporters"
:key="importerType.slug" :key="importerType.slug"
v-if="!(hideWhenManualCollection && !importerType.manual_collection)"
@click="onSelectImporter(importerType)"> @click="onSelectImporter(importerType)">
<h4>{{ importerType.name }}</h4> <h4>{{ importerType.name }}</h4>
<p>{{ importerType.description }}</p> <p>{{ importerType.description }}</p>
@ -45,7 +46,8 @@ import { mapActions } from 'vuex';
export default { export default {
name: 'AvailableImportersModal', name: 'AvailableImportersModal',
props: { props: {
targetCollection: Number targetCollection: Number,
hideWhenManualCollection: false
}, },
data(){ data(){
return { return {
@ -94,7 +96,7 @@ export default {
border-bottom: none; border-bottom: none;
} }
&:hover { &:hover {
background-color: $primary-lighter; background-color: $tainacan-input-background;
} }
} }
} }