meteor_supercalendar icon indicating copy to clipboard operation
meteor_supercalendar copied to clipboard

Adding userId to events

Open abachuk opened this issue 9 years ago • 5 comments

Is it possible to add userId to every event? I need to track down who created certain tasks or even create private calendars.

abachuk avatar Aug 03 '15 17:08 abachuk

Right now it's only possible if you override the view you want to make the insert and show a new modal or redirect to a new page: https://github.com/gabrielhpugliese/meteor_supercalendar#custom-events

For example, render a new modal called my_insert_modal whenever user clicks on a day:

SuperCalendar.events.onDayClick: function (e, t, data) {
      AntiModals.overlay('my_insert_modal', {
        data: { // send data here }
      });
};

gabrielhpugliese avatar Aug 03 '15 18:08 gabrielhpugliese

Same as #11

gabrielhpugliese avatar Aug 03 '15 18:08 gabrielhpugliese

Ok, thanks. Would you consider adding that by default? I can submit pull request. I think userId is useful in many cases.

abachuk avatar Aug 03 '15 18:08 abachuk

Sure, that would be great.

On Mon, Aug 3, 2015 at 3:31 PM Alex Bachuk [email protected] wrote:

Ok, thanks. Would you consider adding that by default? I can submit pull request. I think userId is useful in many cases.

— Reply to this email directly or view it on GitHub https://github.com/gabrielhpugliese/meteor_supercalendar/issues/12#issuecomment-127363409 .

gabrielhpugliese avatar Aug 03 '15 19:08 gabrielhpugliese

Another possibility to add things to the Collection is using https://github.com/matb33/meteor-collection-hooks

On Mon, Aug 3, 2015 at 4:43 PM Gabriel Pugliese [email protected] wrote:

Sure, that would be great.

On Mon, Aug 3, 2015 at 3:31 PM Alex Bachuk [email protected] wrote:

Ok, thanks. Would you consider adding that by default? I can submit pull request. I think userId is useful in many cases.

— Reply to this email directly or view it on GitHub https://github.com/gabrielhpugliese/meteor_supercalendar/issues/12#issuecomment-127363409 .

gabrielhpugliese avatar Aug 04 '15 00:08 gabrielhpugliese