frontend/src/stores/ParticipantStore.js
// if participant has input a value for search, enable search else disable search
if participant has input a value for search, enable search else disable search
if participant has input a value for search enable search else disable search
@computed get toggleSearch() {
    let hasSearchString =
      Object.keys(this.params).length > 0 &&
      (this.params.pp_id || this.params.first_name || this.params.last_name)
        ? true
        : false
    return !hasSearchString
  }
@ computed get toggleSearch ( ) { let hasSearchString = Object . keys ( this . params ) . length > 0 && ( this . params . pp_id || this . params . first_name || this . params . last_name ) ? true : false return ! hasSearchString }
if participant has input a value for search, enable search else disable search
if participant has input a value for search enable search else disable search
// if the params obj has any new prop with a length > 0 and its ppId or fName or lName, then enable