Passed
Push — trunk ( dad17d...8894d7 )
by Christian
12:15 queued 16s
created

src/Administration/Resources/app/administration/src/app/asyncComponent/feedback/sw-ai-copilot-warning/index.ts   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 25
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.ts ➔ warningText 0 2 1
1
import template from './sw-ai-copilot-warning.html.twig';
2
import './sw-ai-copilot-warning.scss';
3
4
/**
5
 * @package admin
6
 * @private
7
 */
8
export default Shopware.Component.wrapComponentConfig({
9
    template,
10
11
    props: {
12
        text: {
13
            type: String,
14
            required: false,
15
            default: '',
16
        },
17
    },
18
19
    computed: {
20
        warningText(): string {
21
            return this.text || this.$tc('sw-ai-copilot-warning.text');
22
        },
23
    },
24
});
25