15
15
:key =" groupIndex"
16
16
class =" apos-widget-group"
17
17
>
18
- <h2 v-if =" group.label" class =" apos-widget-group__label" >{{ $t(group.label) }}</h2 >
18
+ <h2
19
+ v-if =" group.label"
20
+ class =" apos-widget-group__label"
21
+ >
22
+ {{ $t(group.label) }}
23
+ </h2 >
19
24
<div
20
25
:class =" [
21
26
`apos-widget-group--${group.columns}-column${
52
57
<p class =" apos-widget__label" >
53
58
{{ $t(item.label) }}
54
59
</p >
55
- <p v-if =" item.description" class =" apos-widget__help" >
60
+ <p
61
+ v-if =" item.description"
62
+ class =" apos-widget__help"
63
+ >
56
64
{{ $t(item.description) }}
57
65
</p >
58
66
</button >
@@ -96,6 +104,7 @@ export default {
96
104
if (this .options .groups ) {
97
105
for (const item of Object .keys (this .options .groups )) {
98
106
if (! this .isValidColumn (item .columns )) {
107
+ // eslint-disable-next-line no-console
99
108
console .warn (
100
109
` apos.expanded-menu: The specified number of columns for the group ${ item .label } is not between the allowed range of 1-4.`
101
110
);
@@ -106,6 +115,7 @@ export default {
106
115
}
107
116
} else if (this .options .widgets ) {
108
117
if (! this .isValidColumn (this .options .columns )) {
118
+ // eslint-disable-next-line no-console
109
119
console .warn (
110
120
' apos.expanded-menu: The specified number of columns for the area is not between the allowed range of 1-4.'
111
121
);
@@ -114,6 +124,7 @@ export default {
114
124
const group = this .createGroup (this .options );
115
125
this .groups .push (group);
116
126
} else {
127
+ // eslint-disable-next-line no-console
117
128
console .warn (
118
129
' apos.expanded-menu: No groups or widgets defined. Please, either add a groups or widgets property to your area configuration.'
119
130
);
@@ -172,7 +183,8 @@ export default {
172
183
const widgetName = ` ${ item} -widget` ;
173
184
const widgetModule = apos .modules [widgetName];
174
185
if (! widgetModule) {
175
- console .error (` ${ widgetName} is not available in this project, please verify its configuration` );
186
+ // eslint-disable-next-line no-console
187
+ console .warn (` ${ widgetName} is not available in this project, please verify its configuration` );
176
188
} else {
177
189
group .widgets .push (widgetModule);
178
190
}
0 commit comments