fix imports for AOT build

This commit is contained in:
Nicolas Constant 2018-10-13 11:07:37 -04:00
parent 002debc8da
commit 34e593576d
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 26 additions and 4 deletions

View File

@ -17,7 +17,8 @@ export class AddNewStatusComponent implements OnInit {
selectedPrivacy = 'Public'; selectedPrivacy = 'Public';
privacyList: string[] = ['Public', 'Unlisted', 'Follows-only', 'DM']; privacyList: string[] = ['Public', 'Unlisted', 'Follows-only', 'DM'];
constructor(private readonly store: Store, constructor(
private readonly store: Store,
private readonly mastodonService: MastodonService) { } private readonly mastodonService: MastodonService) { }
ngOnInit() { ngOnInit() {

View File

@ -1,4 +1,7 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit, Input } from '@angular/core';
import { Store } from '@ngxs/store';
import { MastodonService } from '../../../../services/mastodon.service';
import { AccountInfo } from '../../../../states/accounts.state';
@Component({ @Component({
selector: 'app-reply-to-status', selector: 'app-reply-to-status',
@ -6,12 +9,30 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./reply-to-status.component.scss'] styleUrls: ['./reply-to-status.component.scss']
}) })
export class ReplyToStatusComponent implements OnInit { export class ReplyToStatusComponent implements OnInit {
@Input() status: string;
selectedPrivacy = 'Public';
privacyList: string[] = ['Public', 'Unlisted', 'Follows-only', 'DM'];
constructor() { } constructor(
private readonly store: Store,
private readonly mastodonService: MastodonService) { }
ngOnInit() { ngOnInit() {
} }
onSubmit(): boolean {
return false;
}
private getRegisteredAccounts(): AccountInfo[] {
var regAccounts = <AccountInfo[]>this.store.snapshot().registeredaccounts.accounts;
return regAccounts;
}
onCtrlEnter(): boolean {
this.onSubmit();
return false;
}
} }