added foolproof on instance name
This commit is contained in:
parent
d982c7a84b
commit
fbc10b049f
@ -22,7 +22,7 @@ export class AddNewAccountComponent implements OnInit {
|
|||||||
private instance: string;
|
private instance: string;
|
||||||
@Input()
|
@Input()
|
||||||
set setInstance(value: string) {
|
set setInstance(value: string) {
|
||||||
this.instance = value.trim();
|
this.instance = value.replace('http://', '').replace('https://', '').replace('/', '').toLowerCase().trim();
|
||||||
this.checkComrad();
|
this.checkComrad();
|
||||||
}
|
}
|
||||||
get setInstance(): string {
|
get setInstance(): string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user