Skip to content

Commit

Permalink
Merged in bugfix/SHIBUI-599 (pull request #160)
Browse files Browse the repository at this point in the history
SHIBUI-599 Fixed missing loader

* SHIBUI-599 Fixed missing loader

* SHIBUI-599 Fixed bug with test

Approved-by: Shibui Jenkins <shibui.jenkins@gmail.com>
Approved-by: Ryan Mathis <rmathis@unicon.net>
  • Loading branch information
rmathis committed Aug 15, 2018
1 parent a25470f commit 0d4c976
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { ProviderEditorNavComponent } from '../component/provider-editor-nav.com
import { NgbModalStub } from '../../../../testing/modal.stub';
import { MetadataProvider } from '../../domain/model';
import { of } from 'rxjs';
import { DifferentialService } from '../../../core/service/differential.service';

@Component({
template: `
Expand Down Expand Up @@ -44,7 +45,11 @@ describe('Provider Edit Component', () => {
TestBed.configureTestingModule({
imports: [
NgbDropdownModule.forRoot(),
RouterTestingModule,
RouterTestingModule.withRoutes([
{path: 'edit', children: []},
{path: 'foo', children: []},
{path: '', children: []}
]),
SharedModule,
StoreModule.forRoot({
provider: combineReducers(fromRoot.reducers),
Expand All @@ -64,6 +69,7 @@ describe('Provider Edit Component', () => {
ProviderEditorNavComponent
],
providers: [
DifferentialService,
{ provide: NgbModal, useClass: NgbModalStub },
{ provide: ActivatedRoute, useValue: activatedRoute },
{ provide: APP_BASE_HREF, useValue: '/' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h3 class="tag tag-primary">
role="button">
<span class="label pull-left" i18n="@@action--save">Save</span>
<span class="direction pull-right">
<i class="fa fa-fw fa-lg next d-block fa-2x"
<i class="fa fa-fw next d-block fa-2x"
[ngClass]="{
'fa-save': !(wizardIsSaving$ | async),
'fa-spinner': (wizardIsSaving$ | async),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ <h3 class="tag tag-primary">
<button class="nav-link save btn" aria-label="Save" role="button" (click)="onSave(resolver)" [disabled]="saving$ | async">
<span class="label pull-left" i18n="@@action--save">Save</span>
<span class="direction pull-right">
<i class="fa fa-fw fa-save next d-block fa-2x"></i>
<i class="fa fa-fw next d-block fa-2x"
[ngClass]="{
'fa-save': !(saving$ | async),
'fa-spinner fa-pulse': (saving$ | async)
}"></i>
<ng-container i18n="@@action--save">Save</ng-container>
</span>
</button>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/wizard/component/wizard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h3 class="tag tag-primary">
Save
</span>
<span class="direction pull-right">
<i class="fa fa-fw fa-lg next d-block fa-2x"
<i class="fa fa-fw next d-block fa-2x"
[ngClass]="{
'fa-save': !(disabled$ | async),
'fa-spinner': (disabled$ | async),
Expand Down

0 comments on commit 0d4c976

Please sign in to comment.