From 01b51cd081b15e5ecedefccc249ec4b984026ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 11 Mar 2015 23:06:50 +0100 Subject: [PATCH] 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 --- js/ui/calendar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 2f1fac03b..b79045e8f 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -1198,6 +1198,10 @@ const EventMessage = new Lang.Class({ title = title + ELLIPSIS_CHAR; } return title; + }, + + canClose: function() { + return _isToday(this._date); } });