Skip to content

Commit

Permalink
mgr/dashboard: Introduce 'cd-loading-panel' component
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <vtheile@suse.com>
  • Loading branch information
votdev committed Apr 24, 2018
1 parent c01eead commit 3691f54
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
DeleteConfirmationComponent
} from './delete-confirmation-modal/delete-confirmation-modal.component';
import { HelperComponent } from './helper/helper.component';
import { LoadingPanelComponent } from './loading-panel/loading-panel.component';
import { SparklineComponent } from './sparkline/sparkline.component';
import { SubmitButtonComponent } from './submit-button/submit-button.component';
import { UsageBarComponent } from './usage-bar/usage-bar.component';
Expand All @@ -31,7 +32,8 @@ import { ViewCacheComponent } from './view-cache/view-cache.component';
HelperComponent,
SubmitButtonComponent,
UsageBarComponent,
DeleteConfirmationComponent
DeleteConfirmationComponent,
LoadingPanelComponent
],
providers: [],
exports: [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<alert type="info">
<strong>
<i class="fa fa-spinner fa-spin fa-fw"
aria-hidden="true"></i>
</strong>
<ng-content></ng-content>
</alert>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { LoadingPanelComponent } from './loading-panel.component';

describe('LoadingPanelComponent', () => {
let component: LoadingPanelComponent;
let fixture: ComponentFixture<LoadingPanelComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ LoadingPanelComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(LoadingPanelComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Component } from '@angular/core';

@Component({
selector: 'cd-loading-panel',
templateUrl: './loading-panel.component.html',
styleUrls: ['./loading-panel.component.scss']
})
export class LoadingPanelComponent {
}

0 comments on commit 3691f54

Please sign in to comment.