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

Clone trap handlers #44

Closed
manfredw opened this issue Aug 31, 2020 · 5 comments
Closed

Clone trap handlers #44

manfredw opened this issue Aug 31, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@manfredw
Copy link

Is your feature request related to a problem? Please describe.
Reuse already defined (complex) handlers with slightly different settings.

Describe the solution you'd like
Please implement a feature to clone/copy an existing trap handler.

@patrickpr patrickpr self-assigned this Sep 1, 2020
@patrickpr patrickpr added the enhancement New feature or request label Sep 1, 2020
patrickpr pushed a commit that referenced this issue Sep 1, 2020
@patrickpr
Copy link
Owner

Done (latest master) :

  1. Click on an existing rule as if you where editing it
  2. Change values
  3. Click on 'Clone' instead of update.

patrickpr added a commit that referenced this issue Sep 1, 2020
@patrickpr
Copy link
Owner

Working OK ?

@manfredw
Copy link
Author

manfredw commented Sep 4, 2020

Yes, it works :-)

There's just a little flaw...
After a click on update or clone, a yellow popup notification "Saved" appears in the footer area.
In other icingaweb2 modules these messages disappear automatically after some seconds, but this one must be removed by clicking on it. Can you change this behaviour? You should find a code sample i.e. in IcingaDirector.

@patrickpr
Copy link
Owner

Yes, there must be a class or something in css that makes it fade out with a timer, but I wasn't able to find exactly which one.
I had a look in Director but didn't find anything working. I'm plannig to write a fader with timeout some day it will take less time than reverse engineer the Director code.

@patrickpr
Copy link
Owner

FYI : found how fading notification is done by Icinga, will update all pages.

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

No branches or pull requests

2 participants