Skip to content

Commit

Permalink
chore:🌻 add progress
Browse files Browse the repository at this point in the history
  • Loading branch information
NsdHSO committed Nov 3, 2023
1 parent 61fdd27 commit 54c8f00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions ftx-demo/src/lib/ftx-demo/demo.routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ export const demoRouting: Route[] = [
name: 'Continue',
},
{
disabled: interval(2500).pipe(
map((v) => v % 2 === 0),
startWith(false)
),
disabled: (() =>
interval(2500).pipe(
map((v) => v % 2 === 0),
startWith(false)
))(),
name: 'Has Done ',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('ProgressComponent', () => {
activatedSpy = {
snapshot: {
data: {
config: [{ icon: 'fa_solid:RO' }, { icon: 'fa_solid:CR' }],
stepper: [{ icon: 'fa_solid:RO' }, { icon: 'fa_solid:CR' }],
actions: [
{ disable: disableSpy.asObservable(), name: 'Pause' },
{ disable: notDisableSpy.asObservable(), name: 'Continue' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export class ProgressComponent {
*/
generativeService = inject(GenerativeService);

configs = this._activateRoute.snapshot.data['config'];
configs = this._activateRoute.snapshot.data['stepper'];
actions = this._activateRoute.snapshot.data['actions'];
}

0 comments on commit 54c8f00

Please sign in to comment.