Skip to content

EspoCRM – Open Source CRM Application

event cancelation ui fix

Yuri Kuznetsovbf3e71e6424f
diff --git a/client/modules/crm/src/views/meeting/detail.js b/client/modules/crm/src/views/meeting/detail.js
index 0f48f2ef40..d1e9623d72 100644
--- a/client/modules/crm/src/views/meeting/detail.js
+++ b/client/modules/crm/src/views/meeting/detail.js
@@ -61,6 +61,8 @@ class MeetingDetailView extends DetailView {
onClick: () => this.actionSetAcceptanceStatus(),
});
+ this.setupCancellationPeriod();
+
this.controlSendInvitationsButton();
this.controlAcceptanceStatusButton();
this.controlSendCancellationButton();
@@ -71,8 +73,6 @@ class MeetingDetailView extends DetailView {
});
this.listenTo(this.model, 'sync', () => this.controlAcceptanceStatusButton());
-
- this.setupCancellationPeriod();
}
setupStatuses() {
@@ -218,7 +218,7 @@ class MeetingDetailView extends DetailView {
dateEnd &&
this.getDateTime()
.toMoment(dateEnd)
- .subtract(this.cancellationPeriodAmount, this.cancellationPeriodUnits)
+ .add(this.cancellationPeriodAmount, this.cancellationPeriodUnits)
.isBefore(moment.now())
) {
show = false;