Skip to content

Commit

Permalink
Change ercole version
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaiolini committed Dec 18, 2024
1 parent 4abaed9 commit bf5ff02
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default {
title: 'Ercole Version',
message: `
<p class="has-text-weight-bold">Server Version: <span class="has-text-weight-normal">${this.version}</span></p>
<p class="has-text-weight-bold">Web Version: <span class="has-text-weight-normal">2.51.0</span></p>
<p class="has-text-weight-bold">Web Version: <span class="has-text-weight-normal">2.51.1</span></p>
`,
cancelButton: false,
type: 'is-success',
Expand Down
53 changes: 33 additions & 20 deletions src/components/settings/AlertService.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
:options="trueOrFalseOptions"
customClass="is-justify-content-flex-start"
customRadioClass="mr-5"
:customRadioDisable="!AlertService.Emailer.Enabled"
:customRadioDisable="AlertService.Emailer.Enabled === false"
/>
</div>
</div>
Expand All @@ -324,7 +324,7 @@
allow-new
ellipsis
:before-adding="beforeAdding"
:disabled="!AlertService.Emailer.Enabled"
:disabled="AlertService.Emailer.Enabled === false"
>
</b-taginput>
</div>
Expand All @@ -343,7 +343,7 @@
:options="trueOrFalseOptions"
customClass="is-justify-content-flex-start"
customRadioClass="mr-5"
:customRadioDisable="!AlertService.Emailer.Enabled"
:customRadioDisable="AlertService.Emailer.Enabled === false"
/>
</div>
</div>
Expand All @@ -363,7 +363,7 @@
allow-new
ellipsis
:before-adding="beforeAdding"
:disabled="!AlertService.Emailer.Enabled"
:disabled="AlertService.Emailer.Enabled === false"
>
</b-taginput>
</div>
Expand All @@ -382,7 +382,7 @@
:options="trueOrFalseOptions"
customClass="is-justify-content-flex-start"
customRadioClass="mr-5"
:customRadioDisable="!AlertService.Emailer.Enabled"
:customRadioDisable="AlertService.Emailer.Enabled === false"
/>
</div>
</div>
Expand All @@ -402,7 +402,7 @@
allow-new
ellipsis
:before-adding="beforeAdding"
:disabled="!AlertService.Emailer.Enabled"
:disabled="AlertService.Emailer.Enabled === false"
>
</b-taginput>
</div>
Expand All @@ -421,7 +421,7 @@
:options="trueOrFalseOptions"
customClass="is-justify-content-flex-start"
customRadioClass="mr-5"
:customRadioDisable="!AlertService.Emailer.Enabled"
:customRadioDisable="AlertService.Emailer.Enabled === false"
/>
</div>
</div>
Expand All @@ -441,7 +441,7 @@
allow-new
ellipsis
:before-adding="beforeAdding"
:disabled="!AlertService.Emailer.Enabled"
:disabled="AlertService.Emailer.Enabled === false"
>
</b-taginput>
</div>
Expand All @@ -463,7 +463,7 @@
:options="trueOrFalseOptions"
customClass="is-justify-content-flex-start"
customRadioClass="mr-5"
:customRadioDisable="!AlertService.Emailer.Enabled"
:customRadioDisable="AlertService.Emailer.Enabled === false"
/>
</div>
</div>
Expand All @@ -485,7 +485,7 @@
allow-new
ellipsis
:before-adding="beforeAdding"
:disabled="!AlertService.Emailer.Enabled"
:disabled="AlertService.Emailer.Enabled === false"
>
</b-taginput>
</div>
Expand All @@ -504,7 +504,7 @@
:options="trueOrFalseOptions"
customClass="is-justify-content-flex-start"
customRadioClass="mr-5"
:customRadioDisable="!AlertService.Emailer.Enabled"
:customRadioDisable="AlertService.Emailer.Enabled === false"
/>
</div>
</div>
Expand All @@ -524,7 +524,7 @@
allow-new
ellipsis
:before-adding="beforeAdding"
:disabled="!AlertService.Emailer.Enabled"
:disabled="AlertService.Emailer.Enabled === false"
>
</b-taginput>
</div>
Expand All @@ -545,7 +545,7 @@
:options="trueOrFalseOptions"
customClass="is-justify-content-flex-start"
customRadioClass="mr-5"
:customRadioDisable="!AlertService.Emailer.Enabled"
:customRadioDisable="AlertService.Emailer.Enabled === false"
/>
</div>
</div>
Expand All @@ -567,7 +567,7 @@
allow-new
ellipsis
:before-adding="beforeAdding"
:disabled="!AlertService.Emailer.Enabled"
:disabled="AlertService.Emailer.Enabled === false"
>
</b-taginput>
</div>
Expand All @@ -586,7 +586,7 @@
:options="trueOrFalseOptions"
customClass="is-justify-content-flex-start"
customRadioClass="mr-5"
:customRadioDisable="!AlertService.Emailer.Enabled"
:customRadioDisable="AlertService.Emailer.Enabled === false"
/>
</div>
</div>
Expand All @@ -606,7 +606,7 @@
allow-new
ellipsis
:before-adding="beforeAdding"
:disabled="!AlertService.Emailer.Enabled"
:disabled="AlertService.Emailer.Enabled === false"
>
</b-taginput>
</div>
Expand All @@ -625,7 +625,7 @@
:options="trueOrFalseOptions"
customClass="is-justify-content-flex-start"
customRadioClass="mr-5"
:customRadioDisable="!AlertService.Emailer.Enabled"
:customRadioDisable="AlertService.Emailer.Enabled === false"
/>
</div>
</div>
Expand All @@ -645,7 +645,7 @@
allow-new
ellipsis
:before-adding="beforeAdding"
:disabled="!AlertService.Emailer.Enabled"
:disabled="AlertService.Emailer.Enabled === false"
>
</b-taginput>
</div>
Expand All @@ -664,7 +664,7 @@
:options="trueOrFalseOptions"
customClass="is-justify-content-flex-start"
customRadioClass="mr-5"
:customRadioDisable="!AlertService.Emailer.Enabled"
:customRadioDisable="AlertService.Emailer.Enabled === false"
/>
</div>
</div>
Expand All @@ -684,7 +684,7 @@
allow-new
ellipsis
:before-adding="beforeAdding"
:disabled="!AlertService.Emailer.Enabled"
:disabled="AlertService.Emailer.Enabled === false"
>
</b-taginput>
</div>
Expand Down Expand Up @@ -850,13 +850,26 @@ export default {
emailerEnabled() {
return this.AlertService.Emailer.Enabled
},
reportRunStartup() {
return this.AlertService.ReportAlertJob.RunAtStartup
},
},
watch: {
reportRunStartup(value) {
if (value) {
this.AlertService.Emailer.Enabled = null
}
},
emailerEnabled(value) {
if (value !== null) {
this.AlertService.ReportAlertJob.Crontab = null
this.AlertService.ReportAlertJob.RunAtStartup = false
}
if (value === null) {
this.AlertService.ReportAlertJob.Crontab = '@daily'
this.AlertService.ReportAlertJob.RunAtStartup = true
}
},
},
}
Expand Down

0 comments on commit bf5ff02

Please sign in to comment.