better loading message (#8448)

This commit is contained in:
Alan Ren
2019-11-22 18:52:59 -08:00
committed by GitHub
parent 6b67f27cac
commit 78731e0c8c
2 changed files with 9 additions and 2 deletions

View File

@@ -34,7 +34,10 @@ export class DeploymentProfilePage extends WizardPageBase<DeployClusterWizard> {
}).component();
const container = createFlexContainer(view, [this._cardContainer, hintText], false);
this._loadingComponent = view.modelBuilder.loadingComponent().withItem(container).withProperties<azdata.LoadingComponentProperties>({
loading: true
loading: true,
loadingText: localize('deployCluster.loadingProfiles', "Loading deployment profiles"),
loadingCompletedText: localize('deployCluster.loadingProfilesCompleted', "Loading deployment profiles completed"),
showText: true
}).component();
let formBuilder = view.modelBuilder.formContainer().withFormItems(
[

View File

@@ -98,7 +98,11 @@ export class ResourceTypePickerDialog extends DialogBase {
const toolsTableWrapper = view.modelBuilder.divContainer().withLayout({ width: tableWidth }).component();
toolsTableWrapper.addItem(this._toolsTable, { CSSStyles: { 'border-left': '1px solid silver', 'border-top': '1px solid silver' } });
this._toolsLoadingComponent = view.modelBuilder.loadingComponent().withItem(toolsTableWrapper).component();
this._toolsLoadingComponent = view.modelBuilder.loadingComponent().withItem(toolsTableWrapper).withProperties<azdata.LoadingComponentProperties>({
loadingCompletedText: localize('deploymentDialog.loadingRequiredToolsCompleted', "Loading required tools information completed"),
loadingText: localize('deploymentDialog.loadingRequiredTools', "Loading required tools information"),
showText: true
}).component();
const formBuilder = view.modelBuilder.formContainer().withFormItems(
[
{