Total Complexity | 6 |
Complexity/F | 1 |
Lines of Code | 37 |
Function Count | 6 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 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; |
||
|
|||
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 |
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.