@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 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 id="settings-modal" body-overflow-unset modal-width="50" modal-title="Settings" close-button-title="Close">
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",