diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts
index 0dac226..faca105 100644
--- a/src/app/dashboard/dashboard.component.ts
+++ b/src/app/dashboard/dashboard.component.ts
@@ -259,12 +259,15 @@ export class DashboardComponent implements OnInit {
];
showSecret: boolean = false;
- onToggleDetails() {
- // this.showSecret = !this.showSecret;
- if(this.ShowNull.length === 0){
- this.showSecret = !this.showSecret;
- }
- }
+ showSecret1: boolean = false;
+ showSecret2: boolean = false;
+
+ // onToggleDetails() {
+ // // this.showSecret = !this.showSecret;
+ // if(this.ShowNull.length === 0){
+ // this.showSecret = !this.showSecret;
+ // }
+ // }
async ngOnInit() {
//----------------------------1------------------------
@@ -1133,9 +1136,6 @@ setInterval(async () => {
}
const resultArray = [];
- if(this.resultData7 === []){
- this.showSecret = !this.showSecret;
- }
for (const item of this.Show7) {
// console.log('item: ', item);
@@ -1149,9 +1149,16 @@ setInterval(async () => {
if (st.indexOf(string2) > -1) {
// console.log(st);
resultArray.push(item);
- }
-
+ }
}
+ if (resultArray.length === 0) {
+ if (valueN !== "") {
+ this.showSecret1 = true;
+ }
+ }else if(resultArray.length > 0) {
+ this.showSecret1 = false;
+ }
+
this.resultData7 = resultArray;
}
@@ -1180,11 +1187,15 @@ setInterval(async () => {
}
}
-
+ if (resultArray.length === 0) {
+ if (valueN !== "") {
+ this.showSecret2 = true;
+ }
+ }else if(resultArray.length > 0) {
+ this.showSecret2 = false;
+ }
this.resultDataOnHold7 = resultArray;
- // if(this.resultDataOnHold7 === []){
- // this.showSecret = !this.showSecret;
- // }
+
}
/////////////Get data come to use//////////////////////
--
libgit2 0.21.2