mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
24 lines
875 B
TypeScript
24 lines
875 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import 'vs/css!./media/loadingComponent';
|
|
import { Component, Input } from '@angular/core';
|
|
|
|
import * as nls from 'vs/nls';
|
|
|
|
@Component({
|
|
selector: 'loading-spinner',
|
|
template: `
|
|
<div class="modelview-loadingComponent-container" *ngIf="loading">
|
|
<div class="modelview-loadingComponent-spinner" *ngIf="loading" [title]=_loadingTitle #spinnerElement></div>
|
|
</div>
|
|
`
|
|
})
|
|
export default class LoadingSpinner {
|
|
public readonly _loadingTitle = nls.localize('loadingMessage', "Loading");
|
|
|
|
@Input() loading: boolean;
|
|
}
|