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

Hide minutes from all tabs #32

Open
haris4063 opened this issue Oct 4, 2017 · 4 comments
Open

Hide minutes from all tabs #32

haris4063 opened this issue Oct 4, 2017 · 4 comments

Comments

@haris4063
Copy link

how to hide minutes and seconds fields from all tabs?

@claudiuconstantin
Copy link

claudiuconstantin commented Oct 4, 2017

You should set up the appropriate properties in the options object:

angular.module('myApp', ['angular-cron-gen']).controller('myController', ['$scope', ($scope) => {
// ...
$scope.cronOptions = {
  // ...  
  hideMinutesTab: true,
  hideSeconds: true
};
}])

@haris4063
Copy link
Author

@claudiuconstantin hideMinutesTab only hide Minutes tab. I want to hide minutes field from all the tabs like hideSeconds hides seconds field from all the tabs. I want user to set cron to minimum hourly.

@claudiuconstantin
Copy link

I see what you mean now. Well, I don't think you can do that, but you can always set the minutes and seconds to zero, probably that's what you want your jobs to run at

@vincentjames501
Copy link
Owner

Shouldn't be hard to add a hideMinutes option. I'm starting to wonder if it should instead be something like enabledFields: ['HOURS', 'MINUTES', 'SECONDS', 'ETC'] and enabledTabs: ['HOURS', 'MINUTES', 'SECONDS', 'ETC']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants