Commit Graph

530 Commits

Author SHA1 Message Date
Anthony Bocci d4c1e145fa Redirect to setting page on image uploading error
In the settings we can upload an image as banner. There are some
verifications that are done on the file to check that it's a valid
image.
If the file is not valid, a redirection is done to the theme page with
an error message.

When redirecting to the theme page because of an error on the file, the
controller redirects to an URL set in a variable. The problem was this
variable '$redirectUrl' was undefined, so the controller thrown an
error. The problem occured only if there was an error on the file, but
it worked well if the file was a valid image.

In the controller's constructor a 'submenu' field is set with panel
items and url, so the variable '$redirectUrl' is set to the theme
page URL. Now if there is an error with the file, the user is well
redirected and the error is displayed.

See: CachetHQ/Cachet#2956
2018-03-24 00:05:20 +01:00
James Brooks 0fcd939f50 Merge pull request #2825 from rarguelloF/only-display-incidents
Add the possibility of only displaying incidents in the timeline
2018-03-17 13:13:16 +00:00
Nico Stapelbroek 206022acfd Fix invalid amount of arguments in CreateIncidentUpdateCommandTest 2018-01-27 22:45:19 +01:00
James Brooks 5b1d9ef0f6 Fix up 2018-01-21 22:03:15 +00:00
Knight Tan d2975cd1eb added component and status to CreateIncidentUpdateCommand 2018-01-21 21:59:04 +00:00
Knight Tan ab01609bb5 allow incident update to update component status, bug fix #2767 2018-01-21 21:59:04 +00:00
James Brooks 88e9cdf3d7 Merge pull request #2877 from nstapelbroek/feature/2720-suppress-notifications-in-maintenance
Suppress notifications while in maintenance mode
2018-01-21 20:59:21 +00:00
James Brooks 7a4ec0535d Fixes part of #2775 2018-01-21 18:49:12 +00:00
Nico Stapelbroek b4c721d042 Make sure end users know about the notification suppression when editing incidents 2018-01-21 14:14:03 +01:00
Nico Stapelbroek 1da6764b63 Fetch updates using the eloquent relationship instead of re-querying 2018-01-14 22:17:26 +01:00
Nico Stapelbroek 55f6ee7dc7 Fix styleci violations 2018-01-13 18:32:02 +01:00
Nico Stapelbroek 569b15000a Implement edit IncidentUpdate feature 2018-01-13 17:43:35 +01:00
Nico Stapelbroek 700c936662 Restore add incident update functionality 2018-01-13 15:47:31 +01:00
Nico Stapelbroek 532d8a20c5 Create an incident updates overview page 2018-01-13 15:42:02 +01:00
Rodrigo Argüello Flores c968a8f67a Add the possibility of showing only incidents in the timeline, no matter the date 2018-01-12 12:53:10 +01:00
James Brooks 42fd84ea79 Fixes #2859 2018-01-11 21:43:01 +00:00
James Brooks 8746412467 Update language files 2017-12-03 17:47:45 +00:00
James Brooks 2b2968bca5 Smarter monolog integration. Fixes #2823 2017-12-03 17:02:01 +00:00
James Brooks a7c00626e6 Use the default view for metrics, as expected 2017-12-03 11:41:37 +00:00
James Brooks e2b73e7bd4 Fix undefined variable 2017-10-20 17:22:01 +01:00
James Brooks 11a5357ea9 Fixes #2759 - Days now generate when only 1 2017-10-18 20:01:42 +01:00
Luis Henrique Mulinari 7e40e5c9a3 Fix coding standard 2017-10-11 21:26:15 +02:00
Luis Henrique Mulinari 968bc6a3ce Code clean up. Remove some duplicate keys; Remove some unused parameters; Fix some FQCN; 2017-10-11 21:19:07 +02:00
James Brooks e426eff98c Split routes 2017-10-01 11:30:26 +01:00
James Brooks b5f6c239b4 Fixes #2730 2017-09-19 14:32:44 +01:00
James Brooks 1dd30613eb Merge pull request #2724 from CachetHQ/fix-dashboard-api-routes
Revert "Dashboard API routes are not meant for the browser"
2017-09-15 07:46:54 +01:00
James Brooks f605554a88 Enable Amazon SES during setup 2017-09-14 19:40:30 +01:00
James Brooks 933dcbbc27 Revert "Dashboard API routes are not meant for the browser"
This reverts commit 8fcef7b711.
2017-09-14 19:35:42 +01:00
James Brooks 5b63bcf0c3 Merge pull request #2661 from CachetHQ/fix-dashboard-api-routes
Dashboard API routes are not meant for the browser
2017-07-26 14:23:44 -04:00
James Brooks 6c84d8965e Merge pull request #2662 from CachetHQ/controller-resources
Rename controller methods following Laravel's resource controllers
2017-07-26 14:23:34 -04:00
James Brooks 58717e0e05 Merge pull request #2664 from CachetHQ/logout-redirect
Use cachet_redirect helper when logging out
2017-07-26 14:23:12 -04:00
James Brooks 219ba8608c Cache the user into a variable 2017-07-26 08:42:39 -04:00
James Brooks 26f0f3f50c Use cachet_redirect helper when logging out 2017-07-26 08:41:52 -04:00
James Brooks 8fcef7b711 Dashboard API routes are not meant for the browser 2017-07-26 08:32:37 -04:00
James Brooks 85c10f1436 Rename controller methods following Laravel's resource controllers 2017-07-26 08:31:11 -04:00
James Brooks 964eaa3ce0 Renamed Scheduled Maintenance to just Maintenance. Closes #2516 2017-07-18 22:35:20 +01:00
James Brooks b0468f8c36 Fixes #2630 2017-07-17 12:42:37 +01:00
James Brooks f3df8b4365 Prevent subscibing to internal components when not logged in
Fixes #2520
2017-06-24 19:30:19 +01:00
James Brooks f11c1edeee Implement creating of meta data and tests 2017-06-13 19:34:50 +01:00
James Brooks 979ea1110c Fixes #2463 - Redirect back instead of erroring 2017-05-06 11:01:14 +01:00
James Brooks 2786b5b0da Fix bad Update success message 2017-05-03 09:42:02 +01:00
James Brooks 4607d90401 Improve metric threshold 2017-03-18 11:15:43 +00:00
James Brooks 485116b5ce Rename incident bus 2017-03-18 09:41:33 +00:00
James Brooks a55575656d Rename Bus Add to Create 2017-03-18 09:30:36 +00:00
James Brooks 17b203f579 Fix log page. Closes #2419 2017-03-10 21:46:17 +00:00
James Brooks f223e264c1 Switch back to jenseggers/date 2017-03-09 19:42:35 +00:00
James Brooks 2742797897 Strip spaces from 2FA code. Closes #2405 2017-03-05 17:42:01 +00:00
James Brooks e9c32af672 Apply fixes from StyleCI (#2403)
[ci skip] [skip ci]
2017-03-04 10:45:03 +00:00
James Brooks 883fdb56dc Add system status to /status endpoint 2017-03-04 10:43:49 +00:00
James Brooks c82ae7454c Fixes #2369 2017-02-19 11:07:34 +00:00