Skip to content

Commit

Permalink
fix(spinner): ability to set spinner message (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnixaa committed May 27, 2019
1 parent 74020bd commit 64f94c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class NbSpinnerDirective implements OnInit {
}

setInstanceInputs(instance: NbSpinnerComponent) {
typeof this.spinnerMessage !== 'undefined' && (instance.message = this.spinnerMessage);
instance.message = this.spinnerMessage
typeof this.spinnerStatus !== 'undefined' && (instance.status = this.spinnerStatus);
typeof this.spinnerSize !== 'undefined' && (instance.size = this.spinnerSize);
}
Expand Down
5 changes: 4 additions & 1 deletion src/playground/with-layout/spinner/spinner-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { Component } from '@angular/core';
@Component({
selector: 'nb-app-spinner-card',
template: `
<nb-card accent="danger" size="xsmall" [nbSpinner]="loading" nbSpinnerStatus="danger" nbSpinnerSize="large">
<nb-card accent="danger" size="xsmall" [nbSpinner]="loading"
nbSpinnerStatus="danger"
nbSpinnerSize="large"
nbSpinnerMessage="">
<nb-card-header>Spinners</nb-card-header>
<nb-card-body>
<p>
Expand Down

0 comments on commit 64f94c1

Please sign in to comment.