Johannes Meyer
60d61a8fe7
Response: Only apply `showCompact=1` to redirects for GET requests
2021-02-09 15:59:42 +01:00
Johannes Meyer
defd8132aa
form.js: Don't abort content updates in case of auto submits
2021-02-09 09:13:11 +01:00
Johannes Meyer
f2e53d420b
js: Don't mark requests caused by `__BACK__` as autorefresh
...
It's not an autorefresh and causes issues with form.js otherwise.
2021-02-05 16:38:17 +01:00
Johannes Meyer
11223aaf91
Merge pull request #4311 from Icinga/feature/report-downtime-removal-errors-4303
...
Show error notification if downtime removal is not successful
2021-02-03 15:50:09 +01:00
Johannes Meyer
77ca3e0c31
DeleteDowntimeCommandForm: Show error notification if not successful
...
resolves #4303
2021-02-03 15:42:13 +01:00
Johannes Meyer
5be964f989
Merge pull request #4304 from Icinga/do-not-abort-less-compilation-due-to-missing-vars-and-mixins
...
Do not abort LESS compilation due to missing variables and mixins
2021-01-25 09:20:21 +01:00
Johannes Meyer
f4a8599193
Introduce and utilize class `Icinga\Util\LessParser`
2021-01-25 09:15:53 +01:00
Johannes Meyer
36003df087
Merge pull request #4300 from Icinga/preserve-show-compact-during-redirects
...
Automatically preserve showCompact parameter when redirecting
2021-01-15 16:53:28 +01:00
Johannes Meyer
500696c767
Response: Set `showCompact=1` on a redirect url..
...
..if compact layout has been requested.
refs #4164
fixes Icinga/icingadb-web#125
2021-01-15 16:50:00 +01:00
Johannes Meyer
a3db4d1a5b
Merge pull request #4293 from Icinga/fix/actioncontroller-setAutorefreshInterval
...
Drop new parameter from ActionController::setAutorefreshInterval()
2021-01-15 15:13:00 +01:00
Johannes Meyer
accbd9d847
ApplicationStateController: Initalize `$autorefreshInterval`
...
Instead of defining it with the setter. This prevents the
user's preferences from having an effect on this route.
2021-01-15 15:08:48 +01:00
Johannes Meyer
f1dd69d877
ActionController: Set autorefresh interval on view as late as possible
...
This allows to initialize property `$autorefreshInterval` and have it
take an effect on non-XHR requests.
2021-01-15 15:08:48 +01:00
Johannes Meyer
765557af69
ActionController: Drop new param in method `setAutorefreshInterval()`
2021-01-15 15:08:48 +01:00
Johannes Meyer
6024e84663
Merge pull request #4259 from Icinga/feature/add-input-enrichment-behavior
...
Add input enrichment behavior
2021-01-14 12:13:49 +01:00
Johannes Meyer
eff5c4e1d1
input-enrichment.js: Import required classes with `require()`
2021-01-14 11:57:24 +01:00
Johannes Meyer
dc5e39ef1c
input-enrichment.js: Add method `update()`
2021-01-14 11:57:24 +01:00
Johannes Meyer
67de8a079a
js: Initialize all types of input enrichments
2021-01-14 11:57:24 +01:00
Johannes Meyer
fcd0a0a698
complete.js: Keep IE11 compatibility
2021-01-14 11:57:06 +01:00
Johannes Meyer
4019522da1
loader.js: Disable inputs in forms not having role `search`
...
Previously only the `#search` input wasn't disabled, now also
the new filter input isn't. This is required to re-focus the
input after submission as disabled elements loose focus.
2021-01-14 11:57:06 +01:00
Johannes Meyer
3c41c14653
complete.js: Properly manage enrichment persistence
2021-01-14 11:57:06 +01:00
Johannes Meyer
d19a55311b
complete.js: Keep used terms in case of an autorefresh
2021-01-14 11:57:06 +01:00
Johannes Meyer
5924d610a1
js: Provide additional parameters for events `beforerender` and `rendered`
...
beforerender: content, action, autorefresh, scripted
rendered: autorefresh, scripted
2021-01-14 11:57:05 +01:00
Johannes Meyer
cb24eafdb5
JavaScript: Load behavior `complete.js`
2021-01-14 11:57:05 +01:00
Johannes Meyer
dad0122f11
js: Introduce behavior complete.js
2021-01-14 11:56:06 +01:00
Johannes Meyer
5b000a2768
css: Only apply control specific form styles to `.icinga-controls`
2021-01-13 17:20:51 +01:00
Johannes Meyer
cb9ccc68f7
Url: Drop unwanted boolean parameters in method `onlyWith()`
2021-01-13 17:20:22 +01:00
Johannes Meyer
46769b9be2
js: Add `.impact` to `.content` if a control is automatically submitted
2021-01-13 17:19:39 +01:00
Johannes Meyer
6197d5f0af
form.js: Only track real value changes and reset upon reverts
2021-01-13 17:19:18 +01:00
Johannes Meyer
ca74e14812
ui.js: Don't require jQuery objects in `getUniqueContainerId`
2021-01-13 17:18:55 +01:00
Johannes Meyer
fbf3a1f757
loader.js: Don't add form submits other than `GET`s to the history
...
This has previously not been an issue, as form submits seem to have
never targeted another url than their container's current one.
Though any form that did this, was pushed to history upon submit.
This happens now only for `GET` forms.
2021-01-13 17:17:48 +01:00
Johannes Meyer
e346c1c88c
events.js: Also accept `$autoSubmittedBy` from `event.detail`
2021-01-13 17:17:18 +01:00
Johannes Meyer
3e29fba052
js: Transmit `X-Icinga-Autorefresh=1` with autorefresh requests
2021-01-13 17:16:53 +01:00
Johannes Meyer
2c7b2330a7
loader.js: Support behaviors as well as multipart update targets
2021-01-13 17:16:30 +01:00
Johannes Meyer
f05f905d14
history.js: Set `lastPushUrl` in method `replaceCurrentState()`
...
Without this, any subsequent call to `pushCurrentState()` has
no effect in case the same url is used that was replaced.
2021-01-13 17:15:58 +01:00
Johannes Meyer
627f388cfa
Merge pull request #4301 from Icinga/feature/preserve-previous-settings-for-admin-roles-4068
...
Preserve previous settings for admin roles
2021-01-12 11:48:37 +01:00
Johannes Meyer
c2efbbdafc
RoleForm: Don't hide permissions/restrictions in admin roles
...
resolves #4068
2021-01-12 11:38:59 +01:00
Sukhwinder Dhillon
53388a3940
Change __toString() to get encoded url string
2020-12-07 13:27:14 +01:00
Johannes Meyer
7c58b3ced1
LessCompiler: Add support for variable exports by modules
...
Using the following in a module's less file:
```
@exports: {
@foo: "bar";
@number: 4;
@color: red;
};
```
will export the variables `@foo`, `@number` and `@color` into the global
scope. Though, exports are not able to override already defined variables.
That's still reserved for themes.
2020-12-02 10:51:01 +01:00
Johannes Meyer
a33317aeab
Module: Don't emit warnings for module assets
...
resolves #4286
2020-12-01 09:44:56 +01:00
Johannes Meyer
bef52f3f2e
Merge pull request #4162 from Icinga/feature/expire-comments-3447
...
Monitoring: add expire option for comments
2020-12-01 08:42:04 +01:00
Alexander A. Klimov
6af1e5d43b
Monitoring: add expire option for comments
...
refs #3447
2020-11-30 17:24:57 +01:00
Johannes Meyer
629a39ebbe
Cli/Loader: Configure the used `Screen` to use STDERR
...
Otherwise we still colorize output if stderr is being
redirected.
2020-11-30 15:35:20 +01:00
Alexander A. Klimov
d7e3547c6e
CLI: write errors to stderr
2020-11-30 15:35:20 +01:00
Johannes Meyer
648e07d270
Merge pull request #4170 from Icinga/feature/auto-refresh-interval-config-2819
...
Make auto refresh interval configurable
2020-11-30 11:53:37 +01:00
Johannes Meyer
0f400ea4ef
PreferenceForm: Properly process autosubmits
...
Otherwise the default value of element `auto_refresh_speed`
is not applied after enabling element `auto_refresh`.
2020-11-30 11:41:23 +01:00
Alexander Aleksandrovič Klimov
79ad7a4197
Name auto-refresh speeds more human readable
...
Co-authored-by: Johannes Meyer <johannes.meyer@icinga.com>
2020-11-26 11:38:02 +01:00
Alexander A. Klimov
81b19285a7
Make auto refresh interval configurable
...
refs #2819
2020-11-26 11:38:02 +01:00
Johannes Meyer
6956ec4450
Manager/Libraries: Don't try to compare versions if any version is sufficient
2020-11-24 15:31:11 +01:00
Johannes Meyer
fbf662bb1e
Merge pull request #4236 from tigercomputing/fix/badges-for-disabled-active-checks
...
Add notification beads for disabled active checks
2020-11-23 09:22:52 +01:00
Rick Henry
92ef10c22b
Add notification badges for disabled active checks
...
We mistakenly disabled active checks in our Icinga environment and did
not notice for some time. This commit hooks into the badge mechanic used
when notifications are turned off, and also provides badges when active
host checks and active service checks are disabled.
2020-11-22 21:18:08 +00:00