@crowdin/app-project-module 0.14.0 → 0.14.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/util/index.js +5 -1
- package/out/views/main.handlebars +6 -0
- package/package.json +1 -1
package/out/util/index.js
CHANGED
|
@@ -191,6 +191,10 @@ function applyDefaults(config, integration) {
|
|
|
191
191
|
helpText: 'Set the frequency for pushing sources and translations',
|
|
192
192
|
type: 'select',
|
|
193
193
|
options: [
|
|
194
|
+
{
|
|
195
|
+
value: '0',
|
|
196
|
+
label: 'Disabled',
|
|
197
|
+
},
|
|
194
198
|
{
|
|
195
199
|
value: '1',
|
|
196
200
|
label: '1 hour',
|
|
@@ -330,7 +334,7 @@ function filesCron(config, integration, period) {
|
|
|
330
334
|
if (crowdinCredentials && integrationCredentials) {
|
|
331
335
|
const intConfig = integrationCredentials.config
|
|
332
336
|
? JSON.parse(integrationCredentials.config)
|
|
333
|
-
: { schedule:
|
|
337
|
+
: { schedule: '0' };
|
|
334
338
|
if (period === intConfig.schedule) {
|
|
335
339
|
const projectId = crowdinAppFunctions.getProjectId(integrationCredentials.id);
|
|
336
340
|
const crowdinClient = yield prepareCrowdinClient(config, crowdinCredentials);
|
|
@@ -294,6 +294,12 @@
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
|
+
{{#if withCronSync}}
|
|
298
|
+
const sheduleSettings = document.querySelector('#schedule-settings');
|
|
299
|
+
if (JSON.parse(sheduleSettings.value).length <= 0) {
|
|
300
|
+
sheduleSettings.value = JSON.stringify(["0"]);
|
|
301
|
+
}
|
|
302
|
+
{{/if}}
|
|
297
303
|
}
|
|
298
304
|
|
|
299
305
|
function saveSettings() {
|
package/package.json
CHANGED