• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kiva / ui / 9961851646

16 Jul 2024 06:03PM UTC coverage: 42.357% (-0.2%) from 42.565%
9961851646

Pull #5380

github

web-flow
Merge 9dce17804 into 6930741a2
Pull Request #5380: feat: add to basket experiment mp-346

964 of 2358 branches covered (40.88%)

Branch coverage included in aggregate %.

0 of 19 new or added lines in 2 files covered. (0.0%)

1369 of 3150 relevant lines covered (43.46%)

419.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/plugins/basket-modal-mixin.js
NEW
1
const PHOTO_PATH = 'https://www-kiva-org.freetls.fastly.net/img/';
×
2

3
export default {
4
        data() {
NEW
5
                return {
×
6
                        addedLoan: null,
7
                        PHOTO_PATH,
8
                        cartModalVisible: false,
9
                        hasBasket: false,
10
                };
11
        },
12
        computed: {
13
                basketCount() {
NEW
14
                        return this.addedLoan?.basketSize ?? 0;
×
15
                }
16
        },
17
        methods: {
18
                handleCartModal(payload) {
NEW
19
                        this.hasBasket = payload?.basketSize > 0;
×
NEW
20
                        this.addedLoan = { ...payload };
×
NEW
21
                        this.cartModalVisible = true;
×
22
                },
23
                closeCartModal(closedBy) {
NEW
24
                        this.cartModalVisible = false;
×
NEW
25
                        this.addedLoan = null;
×
NEW
26
                        const { type } = closedBy;
×
NEW
27
                        if (type) {
×
NEW
28
                                this.$kvTrackEvent('basket', 'dismiss', 'basket-modal', type);
×
NEW
29
                                this.handleRedirect(type);
×
30
                        }
31
                },
32
                handleRedirect(type) {
NEW
33
                        if (type === 'view-basket') {
×
NEW
34
                                this.$router.push({ path: '/basket' });
×
35
                        }
36
                }
37
        },
38
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc