diff --git a/modules/monitoring/application/forms/Command/Instance/ToggleNotificationsCommandForm.php b/modules/monitoring/application/forms/Command/Instance/ToggleNotificationsCommandForm.php new file mode 100644 index 000000000..661d57dc5 --- /dev/null +++ b/modules/monitoring/application/forms/Command/Instance/ToggleNotificationsCommandForm.php @@ -0,0 +1,33 @@ +setSubmitLabel(mt('monitoring', 'Toggle Notifications')); + $this->setFeature('notifications_enabled', mt('monitoring', 'Notifications Enabled')); + } + + /** + * Get the command which is to be sent to an Icinga instance + * + * @return ToggleNotifications + */ + public function getCommand() + { + return new ToggleNotifications(); + } +}