response => { callback(); const action = pattern.id === "" ? "created" : "updated"; const message = "Grok pattern \"" + pattern.name + "\" successfully " + action; UserNotification.success(message); return response; },
response => { UserNotification.success("Widget updated successfully"); return response; },
promise.then(() => { UserNotification.success("User \"" + username + "\" was deleted successfully"); }, (error) => {
return this._sendOptOutState({opt_out: false}, () => { if (notify === true) { UserNotification.success("Thank you for helping us making Graylog better!"); } }, (error) => {
return this._sendOptOutState({opt_out: true}, () => { if (notify === true) { UserNotification.success("No anonymous usage stats will be sent.", "Opt-out created"); } }, (error) => {
response => { callback(); UserNotification.success("Grok pattern \"" + pattern.name + "\" successfully deleted"); return response; },
() => UserNotification.success("Widget updated successfully"),
promise.then(() => UserNotification.success("Widget created successfully"),
promise.then((newRole) => { UserNotification.success("Role \"" + newRole.name + "\" was updated successfully"); }, (error) => {
fetch('PUT', url, {preferences: preferencesAsMap}).then(() => { UserNotification.success("User preferences successfully saved"); callback(preferences); }, (errorThrown) => {