diff --git a/dashboard/portal/portals.component.html b/dashboard/portal/portals.component.html index ffcb16d2..50b5fc70 100644 --- a/dashboard/portal/portals.component.html +++ b/dashboard/portal/portals.component.html @@ -103,6 +103,9 @@ type="text" placeholder="Write piwik id of portal" label="Piwik id"> + diff --git a/dashboard/portal/portals.component.ts b/dashboard/portal/portals.component.ts index b49284d5..a7b32e79 100644 --- a/dashboard/portal/portals.component.ts +++ b/dashboard/portal/portals.component.ts @@ -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'); diff --git a/utils/entities/adminTool/portal.ts b/utils/entities/adminTool/portal.ts index f1905f7f..e883e76b 100644 --- a/utils/entities/adminTool/portal.ts +++ b/utils/entities/adminTool/portal.ts @@ -7,6 +7,7 @@ export class Portal { name: string; type: string; piwik:number; + twitterAccount: string; entities: string[] | Entity[]; pages: string[] | Page[];