Add twitter account field for portal - development only
This commit is contained in:
parent
5c7430ae7c
commit
6f26aa0f89
|
@ -103,6 +103,9 @@
|
|||
type="text" placeholder="Write piwik id of portal"
|
||||
label="Piwik id">
|
||||
</div>
|
||||
<!-- <div *ngIf="properties.environment == 'development'" dashboard-input [formInput]="portalForm.get('twitterAccount')" type="text"
|
||||
placeholder="Write twitter account of portal" label="Twitter Account">
|
||||
</div> -->
|
||||
<input type="hidden" formControlName="_id">
|
||||
</form>
|
||||
|
||||
|
|
|
@ -167,6 +167,7 @@ export class PortalsComponent implements OnInit {
|
|||
name: this._fb.control(portal.name, Validators.required),
|
||||
pid: this._fb.control(portal.pid, Validators.required),
|
||||
piwik: this._fb.control(portal.piwik),
|
||||
twitterAccount: this._fb.control(portal.twitterAccount),
|
||||
type: this._fb.control(portal.type, Validators.required),
|
||||
});
|
||||
this.portalForm.get('type').disable();
|
||||
|
@ -182,6 +183,7 @@ export class PortalsComponent implements OnInit {
|
|||
name: this._fb.control('', Validators.required),
|
||||
pid: this._fb.control('', Validators.required),
|
||||
piwik: this._fb.control(''),
|
||||
twitterAccount: this._fb.control(''),
|
||||
type: this._fb.control('', Validators.required),
|
||||
});
|
||||
this.portalModalOpen('Create Portal', 'Create');
|
||||
|
|
|
@ -7,6 +7,7 @@ export class Portal {
|
|||
name: string;
|
||||
type: string;
|
||||
piwik:number;
|
||||
twitterAccount: string;
|
||||
entities: string[] | Entity[];
|
||||
pages: string[] | Page[];
|
||||
|
||||
|
|
Loading…
Reference in New Issue