-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c94a8bd
commit c1062a8
Showing
13 changed files
with
108 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/app/user-area/pages/new-subscription/new-subscription.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<section class="content-narrow"> | ||
<h1>{{ 'COMPONENTS.MODALS.NEW_SUBSCRIPTION.TITLE' | translate }}</h1> | ||
|
||
<app-subscription [subscription]="subscription" (success)="success()" (cancel)="cancel()"></app-subscription> | ||
</section> |
Empty file.
21 changes: 21 additions & 0 deletions
21
src/app/user-area/pages/new-subscription/new-subscription.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { NewSubscriptionComponent } from './new-subscription.component'; | ||
|
||
describe('NewSubscriptionComponent', () => { | ||
let component: NewSubscriptionComponent; | ||
let fixture: ComponentFixture<NewSubscriptionComponent>; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [NewSubscriptionComponent] | ||
}); | ||
fixture = TestBed.createComponent(NewSubscriptionComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
src/app/user-area/pages/new-subscription/new-subscription.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Component } from '@angular/core'; | ||
import { Subscription } from '../../../shared/data/subscription'; | ||
import { Router } from '@angular/router'; | ||
|
||
@Component({ | ||
selector: 'app-new-subscription', | ||
templateUrl: './new-subscription.component.html', | ||
styleUrls: ['./new-subscription.component.scss'] | ||
}) | ||
export class NewSubscriptionComponent { | ||
subscription: Subscription; | ||
|
||
constructor(private router: Router) { | ||
this.subscription = new Subscription(); | ||
this.subscription.id = 'xxx'; | ||
} | ||
|
||
success() { | ||
this.router.navigateByUrl("/user/subscriptions"); | ||
} | ||
|
||
cancel() { | ||
this.router.navigateByUrl("/user/subscriptions"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters