Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to eliminate past dates from showing in list view #48

Open
Cpointcc opened this issue May 3, 2024 · 4 comments
Open

How to eliminate past dates from showing in list view #48

Cpointcc opened this issue May 3, 2024 · 4 comments
Labels
enhancement New feature or request looking for funding My time is limited, backing would help motivate this

Comments

@Cpointcc
Copy link

Cpointcc commented May 3, 2024

I was instructed to add a wishlist item to this plugin to eliminate past dates from showing in the list view. They are greyed out, however it still shows and is confusing to the viewer.

the response from the developer @lbell was:

This could be done via the validRange argument (https://fullcalendar.io/docs/validRange) argument in FullCalender. If you want to add that directly to the code it should work (you’d be looking for pgcalDefaults on line 56 of pgcal.js).

Note: this will get overwritten with any plugin updates. (This is not ideal moving forward as having to remember this process is a maintenance issue.)

If you’d like to see this feature added, please submit a ticket here: https://github.com/lbell/pretty-google-calendar/issues

Please consider adding this feature ASAP. Your effort is greatly appreciated.

@lbell lbell added enhancement New feature or request looking for funding My time is limited, backing would help motivate this labels May 3, 2024
@lbell
Copy link
Owner

lbell commented May 3, 2024

Could add shortcode arg to implement the following:

validRange: {
    start: new Date().toISOString().split('T')[0],
},

Don't think we can use fc_args since we'd need to parse the current date.

@Cpointcc
Copy link
Author

Cpointcc commented May 3, 2024

Hello,

Will this still get overwritten upon updating plugin?

Please advise.

@lbell
Copy link
Owner

lbell commented May 3, 2024

Howdy! @Cpointcc, if you add that code directly into pgcal.js, then yes, it will get overwritten when the plugin is updated.

@Cpointcc
Copy link
Author

Cpointcc commented May 3, 2024

OK. What are the odds this will be added via the wishlist and an eta? It's a great plugin. This I believe is something all users would want to see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request looking for funding My time is limited, backing would help motivate this
Projects
None yet
Development

No branches or pull requests

2 participants