Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
freezeStartCronState() {
return Boolean(!this.freezeStartCron || isValidCron(this.freezeStartCron));
},
invalidFreezeEndCron() {
addDeployFreezeButton() {
return {
text: this.isEditing ? __('Save deploy freeze') : __('Add deploy freeze'),
attributes: [
{ variant: 'confirm' },
{
disabled:
!isValidCron(this.freezeStartCron) ||
!isValidCron(this.freezeEndCron) ||
!this.selectedTimezone,
},
],
};
},
invalidFreezeStartCron() {
addDeployFreezeButton() {
return {
text: this.isEditing ? __('Save deploy freeze') : __('Add deploy freeze'),
attributes: [
{ variant: 'confirm' },
{
disabled:
!isValidCron(this.freezeStartCron) ||
!isValidCron(this.freezeEndCron) ||
!this.selectedTimezone,
},
],
};
},
invalidFreezeStartCron() {
freezeEndCronState() {
return Boolean(!this.freezeEndCron || isValidCron(this.freezeEndCron));
},
timezone: {