Skip to content

Commit

Permalink
wip: Refactor collections based components #917
Browse files Browse the repository at this point in the history
style: cleaned code
  • Loading branch information
cnouguier committed Nov 12, 2024
1 parent 37c9712 commit 56e7802
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions core/client/components/collection/KCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
/>
</div>
</div>
<!--
Expand action
<!--
Expand action
-->
<div v-if="isExpandable" class="row justify-center">
<KAction
Expand Down Expand Up @@ -155,10 +155,7 @@ export default {
},
computedHeader () {
if (this.header) return this.header
const actions = _.filter(this.itemActions, { scope: 'header' })
if (_.isEmpty(actions)) return []
actions.splice(0, 0, { component: 'QSpace' })
return actions
return _.filter(this.itemActions, { scope: 'header' })
},
hasHeader () {
return !_.isEmpty(this.computedHeader)
Expand Down Expand Up @@ -186,10 +183,7 @@ export default {
},
computedFooter () {
if (this.footer) return this.footer
const actions = _.filter(this.itemActions, { scope: 'footer' })
if (_.isEmpty(actions)) return []
actions.splice(0, 0, { component: 'QSpace' })
return actions
return _.filter(this.itemActions, { scope: 'footer' })
},
hasFooter () {
return !_.isEmpty(this.computedFooter)
Expand Down
2 changes: 1 addition & 1 deletion map/client/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function setupApi (configuration) {
// Here are service options used to manage offline features services
features: true
})

const offlineService = await api.createOfflineService(serviceName, options)
return offlineService
}
Expand Down

0 comments on commit 56e7802

Please sign in to comment.