Skip to content

Commit 7d3dccb

Browse files
authored
Merge pull request #28 from bwl21/feature/card-button-order-swap
refactor: Swap card button order - Details as primary action
2 parents db26523 + 070d854 commit 7d3dccb

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "churchtools-dashboard",
33
"private": true,
4-
"version": "1.0.8",
4+
"version": "1.0.9",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/components/common/BaseCard.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,24 @@
8181
<template v-else>&nbsp;</template>
8282
</span>
8383
<div class="footer-actions">
84-
<slot name="actions">
85-
<button
86-
type="button"
87-
@click="$emit('navigate')"
88-
class="ct-btn ct-btn-sm ct-btn-outline"
89-
>
90-
{{ detailsText }}
91-
</button>
92-
</slot>
9384
<button
9485
type="button"
9586
@click="$emit('refresh')"
96-
class="ct-btn ct-btn-primary ct-btn-sm"
87+
class="ct-btn ct-btn-secondary ct-btn-sm"
9788
:disabled="isLoading"
9889
>
9990
<span v-if="isLoading" class="btn-spinner"></span>
10091
{{ isLoading ? refreshingText : refreshText }}
10192
</button>
93+
<slot name="actions">
94+
<button
95+
type="button"
96+
@click="$emit('navigate')"
97+
class="ct-btn ct-btn-primary ct-btn-sm"
98+
>
99+
{{ detailsText }}
100+
</button>
101+
</slot>
102102
</div>
103103
</div>
104104
</div>

0 commit comments

Comments
 (0)