From 6f26aa0f898927ac63f710e9d7cc1d230a0d73e0 Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Thu, 21 Oct 2021 12:39:27 +0300 Subject: [PATCH] Add twitter account field for portal - development only --- dashboard/portal/portals.component.html | 3 +++ dashboard/portal/portals.component.ts | 2 ++ utils/entities/adminTool/portal.ts | 1 + 3 files changed, 6 insertions(+) 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[];