Passed
Push — master ( ad4c2b...6c4379 )
by Christian
13:16 queued 11s
created

src/Administration/Resources/app/administration/src/module/sw-settings-search/component/sw-settings-search-searchable-content/index.js   A

Complexity

Total Complexity 6
Complexity/F 1

Size

Lines of Code 37
Function Count 6

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 6
eloc 20
mnd 0
bc 0
fnc 6
dl 0
loc 37
rs 10
bpm 0
cpm 1
noi 1
c 0
b 0
f 0
1
import template from './sw-settings-search-searchable-content.html.twig';
2
import './sw-settings-search-searchable-content.scss';
3
4
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...
5
6
Component.register('sw-settings-search-searchable-content', {
7
    template,
8
9
    data() {
10
        return {
11
            showExampleModal: false,
12
            defaultTab: 'general'
13
        };
14
    },
15
16
    methods: {
17
        onChangeTab(tabContent) {
18
            this.defaultTab = tabContent;
19
        },
20
21
        onShowExampleModal() {
22
            this.showExampleModal = true;
23
        },
24
25
        onCloseExampleModal() {
26
            this.showExampleModal = false;
27
        },
28
29
        onAddNewConfig() {
30
            // TODO: NEXT-13010 - Implement "Searchable content" card with API integration
31
        },
32
33
        onResetToDefault() {
34
            // TODO: NEXT-13010 - Implement "Searchable content" card with API integration
35
        }
36
    }
37
});
38