calendar: Only allow closing events on the current day

The design calls for differentiating between dismissable reminders
and permanent events, based on whether the selected date is "today"
or some other day.

https://bugzilla.gnome.org/show_bug.cgi?id=744927
This commit is contained in:
Florian Müllner 2015-03-11 23:06:50 +01:00
parent d1efc274e5
commit 01b51cd081

View File

@ -1198,6 +1198,10 @@ const EventMessage = new Lang.Class({
title = title + ELLIPSIS_CHAR;
}
return title;
},
canClose: function() {
return _isToday(this._date);
}
});