From c216b25dfeccfd20de56ea2f0eb467a00f5e4933 Mon Sep 17 00:00:00 2001 From: Heinrich Lee Yu Date: Thu, 1 Nov 2018 08:32:01 +0800 Subject: [PATCH] Prettify JS --- .../boards/components/project_select.vue | 21 ++++++++++++------- app/assets/javascripts/project_select.js | 3 ++- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/app/assets/javascripts/boards/components/project_select.vue b/app/assets/javascripts/boards/components/project_select.vue index c8783bf41f1..645eda4ae11 100644 --- a/app/assets/javascripts/boards/components/project_select.vue +++ b/app/assets/javascripts/boards/components/project_select.vue @@ -48,14 +48,19 @@ export default { selectable: true, data: (term, callback) => { this.loading = true; - return Api.groupProjects(this.groupId, term, { - with_issues_enabled: true, - with_shared: false, - include_subgroups: true - }, projects => { - this.loading = false; - callback(projects); - }); + return Api.groupProjects( + this.groupId, + term, + { + with_issues_enabled: true, + with_shared: false, + include_subgroups: true, + }, + projects => { + this.loading = false; + callback(projects); + }, + ); }, renderRow(project) { return ` diff --git a/app/assets/javascripts/project_select.js b/app/assets/javascripts/project_select.js index 6c5f1198d27..a33835472bb 100644 --- a/app/assets/javascripts/project_select.js +++ b/app/assets/javascripts/project_select.js @@ -14,7 +14,8 @@ export default function projectSelect() { this.orderBy = $(select).data('orderBy') || 'id'; this.withIssuesEnabled = $(select).data('withIssuesEnabled'); this.withMergeRequestsEnabled = $(select).data('withMergeRequestsEnabled'); - this.withShared = $(select).data('withShared') === undefined ? true : $(select).data('withShared'); + this.withShared = + $(select).data('withShared') === undefined ? true : $(select).data('withShared'); this.includeProjectsInSubgroups = $(select).data('includeProjectsInSubgroups') || false; this.allowClear = $(select).data('allowClear') || false;