clang-format-11: reformat
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I74d01806faf1884b8077c6c5c841ef194ff0b021
diff --git a/app/access-control/controllers/user-controller.js b/app/access-control/controllers/user-controller.js
index 8ee8f88..868bc15 100644
--- a/app/access-control/controllers/user-controller.js
+++ b/app/access-control/controllers/user-controller.js
@@ -41,8 +41,9 @@
* @returns user
*/
function mapTableData(user) {
- const accountStatus =
- user.Locked ? 'Locked' : user.Enabled ? 'Enabled' : 'Disabled';
+ const accountStatus = user.Locked ? 'Locked' :
+ user.Enabled ? 'Enabled' :
+ 'Disabled';
const editAction = {type: 'Edit', enabled: true, file: 'icon-edit.svg'};
const deleteAction = {
type: 'Delete',
@@ -322,8 +323,9 @@
// Check if UserName is root
// Some form controls will be disabled for root users:
// edit enabled status, edit username, edit role
- const isRoot =
- newUser ? false : checkIfRoot(user) ? true : false;
+ const isRoot = newUser ? false :
+ checkIfRoot(user) ? true :
+ false;
// Array of existing usernames (excluding current user instance)
const existingUsernames =
$scope.localUsers.reduce((acc, val) => {
diff --git a/app/common/services/toastService.js b/app/common/services/toastService.js
index 0718e4d..a4ad995 100644
--- a/app/common/services/toastService.js
+++ b/app/common/services/toastService.js
@@ -15,9 +15,10 @@
function(ngToast, $sce) {
function initToast(
type = 'create', title = '', message = '', dismissOnTimeout = false) {
- const iconStatus = type === 'success' ?
- 'on' :
- type === 'danger' ? 'error' : type === 'warning' ? 'warn' : null;
+ const iconStatus = type === 'success' ? 'on' :
+ type === 'danger' ? 'error' :
+ type === 'warning' ? 'warn' :
+ null;
const content = $sce.trustAsHtml(`
<div role="alert" class="alert-content-container">
<status-icon ng-if="${iconStatus !== null}"