@crowdin/app-project-module 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/index.js +6 -0
- package/out/views/main.handlebars +7 -1
- package/package.json +1 -1
package/out/index.js
CHANGED
|
@@ -75,6 +75,12 @@ function addCrowdinEndpoints(app, config) {
|
|
|
75
75
|
}
|
|
76
76
|
return options.inverse(this);
|
|
77
77
|
},
|
|
78
|
+
checkLength: function (a, b, options) {
|
|
79
|
+
if (a.length > b) {
|
|
80
|
+
return options.fn(this);
|
|
81
|
+
}
|
|
82
|
+
return options.inverse(this);
|
|
83
|
+
},
|
|
78
84
|
},
|
|
79
85
|
}));
|
|
80
86
|
app.set('view engine', 'handlebars');
|
|
@@ -40,7 +40,13 @@
|
|
|
40
40
|
</crowdin-modal>
|
|
41
41
|
{{/if}}
|
|
42
42
|
{{#if configurationFields}}
|
|
43
|
-
<crowdin-modal
|
|
43
|
+
<crowdin-modal
|
|
44
|
+
id="settings-modal"
|
|
45
|
+
body-overflow-unset="{{#checkLength configurationFields 3}}false{{else}}true{{/checkLength}}"
|
|
46
|
+
modal-width="50"
|
|
47
|
+
modal-title="Settings"
|
|
48
|
+
close-button-title="Close"
|
|
49
|
+
>
|
|
44
50
|
<div id="modal-content">
|
|
45
51
|
{{#each configurationFields}}
|
|
46
52
|
{{#ifeq type "checkbox"}}
|
package/package.json
CHANGED