From 04d0f38f16c15fc20a0446d32b35ab9627afcaac Mon Sep 17 00:00:00 2001 From: Emmanuel Darnis Date: Mon, 20 Nov 2017 16:55:47 +0000 Subject: [PATCH] Replace ternary operator and remove blank lines --- .../connect-addon-modal.coffee | 3 +-- .../connect-addon-modal.html | 22 +++++++++---------- .../apps/modals/app-settings-modal.coffee | 3 +++ .../views/apps/modals/app-settings-modal.html | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/app/components/connect-addon-modal/connect-addon-modal.coffee b/src/app/components/connect-addon-modal/connect-addon-modal.coffee index 0bfca430..1561af65 100644 --- a/src/app/components/connect-addon-modal/connect-addon-modal.coffee +++ b/src/app/components/connect-addon-modal/connect-addon-modal.coffee @@ -11,7 +11,6 @@ angular.module('mnoEnterpriseAngular').component('connectAddonModal', { ctrl.app = null ctrl.model = {} - ctrl.currentStep = 0 ctrl.isFormLoading = true ctrl.isSubmitting = false ctrl.historicalData = false @@ -19,7 +18,7 @@ angular.module('mnoEnterpriseAngular').component('connectAddonModal', { ctrl.$onInit = -> ctrl.app = ctrl.resolve.app - ctrl.currentStep = ctrl.app.addon_organization.has_account_linked ? 1 : 0 + ctrl.currentStep = if ctrl.app.addon_organization.has_account_linked then 1 else 0 MnoeAppInstances.getForm(ctrl.app).then((response) -> ctrl.schema = response.schema ctrl.form = [ "*" ] diff --git a/src/app/components/connect-addon-modal/connect-addon-modal.html b/src/app/components/connect-addon-modal/connect-addon-modal.html index 861be16f..f3b32e60 100644 --- a/src/app/components/connect-addon-modal/connect-addon-modal.html +++ b/src/app/components/connect-addon-modal/connect-addon-modal.html @@ -6,16 +6,15 @@ translate-values="{appname: $ctrl.app.name}"> -