diff --git a/contact-us/contact-us.component.html b/contact-us/contact-us.component.html index 11285a71..ad78e795 100644 --- a/contact-us/contact-us.component.html +++ b/contact-us/contact-us.component.html @@ -26,7 +26,7 @@
- +
diff --git a/contact-us/contact-us.component.ts b/contact-us/contact-us.component.ts index 19c1a9dc..e86006a2 100644 --- a/contact-us/contact-us.component.ts +++ b/contact-us/contact-us.component.ts @@ -1,7 +1,8 @@ -import {Component, EventEmitter, Input, Output} from '@angular/core'; +import {Component, EventEmitter, Input, Output, ViewChild} from '@angular/core'; import {FormGroup} from '@angular/forms'; import {EnvProperties} from "../utils/properties/env-properties"; import {properties} from "../../../environments/environment"; +import {RecaptchaComponent} from "ng-recaptcha"; @Component({ selector: 'contact-us', @@ -18,6 +19,8 @@ export class ContactUsComponent { @Input() public scrollspy: boolean = false; @Input() public sending: boolean = false; @Output() sendEmitter: EventEmitter = new EventEmitter(); + @ViewChild('captchaElem') captchaElem: RecaptchaComponent; + public properties: EnvProperties = properties; public send() { @@ -29,4 +32,8 @@ export class ContactUsComponent { public handleRecaptcha(captchaResponse: string) { this.contactForm.get('recaptcha').setValue(captchaResponse); } + + public resetRecaptcha() { + this.captchaElem.reset(); + } } diff --git a/dashboard/portal/portals.component.html b/dashboard/portal/portals.component.html index 9f57de8c..6910431c 100644 --- a/dashboard/portal/portals.component.html +++ b/dashboard/portal/portals.component.html @@ -55,11 +55,11 @@ Bulk Actions ({{getSelectedPortals().length}})
-
@@ -67,6 +67,7 @@ Name Type + Piwik Actions @@ -81,6 +82,9 @@
{{check.portal.type}}
+ +
{{check.portal.piwik}}
+
diff --git a/dashboard/portal/portals.component.ts b/dashboard/portal/portals.component.ts index be2ed599..d9dec3ec 100644 --- a/dashboard/portal/portals.component.ts +++ b/dashboard/portal/portals.component.ts @@ -229,11 +229,11 @@ export class PortalsComponent implements OnInit { public filterByType(portal: Portal): boolean { let type = this.filterForm.get("type").value; - return type == "all" || (type == portal.type); + return type == "all" || (type === portal.type); } public filterPortals(portal: Portal): boolean { - return this.searchText.toString() === '' || (portal.name || portal.type).match(this.searchText) != null; + return this.searchText.toString() === '' || (portal.name + portal.type + portal.pid).match(this.searchText) != null; } handleUpdateError(message: string, error = null) { diff --git a/dashboard/sharedComponents/page-content/page-content.component.ts b/dashboard/sharedComponents/page-content/page-content.component.ts index 64ff4522..35f64427 100644 --- a/dashboard/sharedComponents/page-content/page-content.component.ts +++ b/dashboard/sharedComponents/page-content/page-content.component.ts @@ -2,14 +2,15 @@ import { AfterViewInit, ChangeDetectorRef, Component, - ElementRef, Inject, + ElementRef, + Inject, Input, OnDestroy, - OnInit, PLATFORM_ID, + OnInit, + PLATFORM_ID, ViewChild } from "@angular/core"; import {LayoutService} from "../sidebar/layout.service"; -import {Subscription} from "rxjs"; declare var UIkit; declare var ResizeObserver; @@ -18,29 +19,27 @@ declare var ResizeObserver; selector: '[page-content]', template: `
-