From 2b83e4c8d646a7cf208b77105c4b1dcfece70167 Mon Sep 17 00:00:00 2001 From: Neil MacDougall Date: Thu, 5 Oct 2017 15:08:16 +0100 Subject: [PATCH] Make search boxes not usable and visually show this while fetching orgs and spaces. --- .../app-framework/i18n/en_US/app-framework.json | 3 +++ .../src/widgets/search-box/search-box.directive.js | 3 ++- .../src/widgets/search-box/search-box.html | 5 ++++- .../src/widgets/search-box/search-box.scss | 8 ++++++++ .../app-theme/src/scss/style/components/_forms.scss | 4 ++++ .../deploy-location/deploy-location.directive.js | 12 ++++++++++++ .../view/util/deploy-location/deploy-location.html | 6 ++++-- 7 files changed, 37 insertions(+), 4 deletions(-) diff --git a/components/app-framework/i18n/en_US/app-framework.json b/components/app-framework/i18n/en_US/app-framework.json index d4bb9f6a1f..5fb35cc8a3 100644 --- a/components/app-framework/i18n/en_US/app-framework.json +++ b/components/app-framework/i18n/en_US/app-framework.json @@ -4,5 +4,8 @@ }, "code-block": { "copied-msg": "Copied to clipboard" + }, + "search-box": { + "busy": "Loading ..." } } \ No newline at end of file diff --git a/components/app-framework/src/widgets/search-box/search-box.directive.js b/components/app-framework/src/widgets/search-box/search-box.directive.js index 0b85ba4005..69767775b3 100644 --- a/components/app-framework/src/widgets/search-box/search-box.directive.js +++ b/components/app-framework/src/widgets/search-box/search-box.directive.js @@ -54,7 +54,8 @@ placeholder: '@?', searchIcon: '@?', disabled: '=?', - translateOptionLabels: '=?' + translateOptionLabels: '=?', + busy: '=?' }, controller: SearchBoxController, controllerAs: 'searchBoxCtrl', diff --git a/components/app-framework/src/widgets/search-box/search-box.html b/components/app-framework/src/widgets/search-box/search-box.html index 458f1c2b9a..06a560a67e 100644 --- a/components/app-framework/src/widgets/search-box/search-box.html +++ b/components/app-framework/src/widgets/search-box/search-box.html @@ -1,10 +1,13 @@ -