From 02373f366c8d91bf2e7ad8224b363a4d95c57891 Mon Sep 17 00:00:00 2001 From: softsimon Date: Sun, 1 Mar 2020 23:18:03 +0700 Subject: [PATCH] Moving strings to template. --- .../src/app/components/search-form/search-form.component.html | 4 ++-- .../src/app/components/search-form/search-form.component.ts | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/components/search-form/search-form.component.html b/frontend/src/app/components/search-form/search-form.component.html index 756efefbf..3566a6336 100644 --- a/frontend/src/app/components/search-form/search-form.component.html +++ b/frontend/src/app/components/search-form/search-form.component.html @@ -1,10 +1,10 @@
- +
- +
\ No newline at end of file diff --git a/frontend/src/app/components/search-form/search-form.component.ts b/frontend/src/app/components/search-form/search-form.component.ts index cc0d083e5..7b372b5e5 100644 --- a/frontend/src/app/components/search-form/search-form.component.ts +++ b/frontend/src/app/components/search-form/search-form.component.ts @@ -11,9 +11,6 @@ import { Router } from '@angular/router'; export class SearchFormComponent implements OnInit { searchForm: FormGroup; - searchButtonText = 'Search'; - searchBoxPlaceholderText = 'Transaction, address, block hash...'; - regexAddress = /^([a-km-zA-HJ-NP-Z1-9]{26,35}|[a-km-zA-HJ-NP-Z1-9]{80}|[a-z]{2,5}1[ac-hj-np-z02-9]{8,87})$/; regexBlockhash = /^[0]{8}[a-fA-F0-9]{56}$/; regexTransaction = /^[a-fA-F0-9]{64}$/;