Skip to content

Commit

Permalink
Admin Logs - Fixed Log Settings errors (#4399)
Browse files Browse the repository at this point in the history
* Reverted 4d1f352

* Showing error notif when log settings operations fail

* Reverted 2b78437

* Allowing super users to add log settings

* Removed check for admin role

Co-authored-by: Brian Dukes <bdukes@engagesoftware.com>

Co-authored-by: Brian Dukes <bdukes@engagesoftware.com>
  • Loading branch information
daguiler and bdukes committed Jan 12, 2021
1 parent b592c59 commit 8543fbd
Show file tree
Hide file tree
Showing 2 changed files with 514 additions and 516 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class LogSettingEditor extends Component {
util.utilities.notify(Localization.get("ConfigUpdated"));
props.Collapse(event);
}, () => {
util.utilities.notify(Localization.get("ConfigUpdateError"));
util.utilities.notifyError(Localization.get("ConfigUpdateError"));
}));
} else {
props.dispatch(LogSettingActions.addLogSetting(logSettingDetail, () => {
Expand All @@ -175,15 +175,15 @@ class LogSettingEditor extends Component {
util.utilities.notify(Localization.get("ConfigDeleted"));
props.Collapse(event);
}, () => {
util.utilities.notify(Localization.get("DeleteError"));
util.utilities.notifyError(Localization.get("DeleteError"));
})
);
}, () => {
util.utilities.notify(Localization.get("ConfigDeleteCancelled"));
});
}
else {
util.utilities.notify(Localization.get("ConfigDeleteInconsistency"));
util.utilities.notifyError(Localization.get("ConfigDeleteInconsistency"));
}
}

Expand Down
Loading

0 comments on commit 8543fbd

Please sign in to comment.