Passed
Push — master ( 5b84f6...7ac427 )
by Christian
21:55 queued 09:55
created

src/Administration/Resources/app/administration/src/module/sw-promotion-v2/component/discount/sw-promotion-v2-wizard-shipping-discount-trigger/index.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 13
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
mnd 0
bc 0
fnc 1
dl 0
loc 13
rs 10
bpm 0
cpm 1
noi 1
c 0
b 0
f 0
1
import template from './sw-promotion-v2-wizard-shipping-discount-trigger.html.twig';
2
3
const { Component } = Shopware;
0 ignored issues
show
Bug introduced by
The variable Shopware seems to be never declared. If this is a global, consider adding a /** global: Shopware */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
4
5
Component.extend('sw-promotion-v2-wizard-shipping-discount-trigger', 'sw-wizard-page', {
6
    template,
7
8
    data() {
9
        return {
10
            modalTitle: this.$tc('sw-promotion-v2.detail.shipping-discount-trigger.modalTitle')
11
        };
12
    }
13
});
14