Added the is_search property to the report chooser to highlight the search when it is on the search page.
This commit is contained in:
		@@ -65,6 +65,8 @@ class ReportChooser:
 | 
			
		||||
        """The links to the reports."""
 | 
			
		||||
        self.current_report: str | LazyString = ""
 | 
			
		||||
        """The title of the current report."""
 | 
			
		||||
        self.is_search: bool = active_report == ReportType.SEARCH
 | 
			
		||||
        """Whether the current report is the search page."""
 | 
			
		||||
        self.__reports.append(self.__journal)
 | 
			
		||||
        self.__reports.append(self.__ledger)
 | 
			
		||||
        self.__reports.append(self.__income_expenses)
 | 
			
		||||
 
 | 
			
		||||
@@ -62,7 +62,7 @@ First written: 2023/3/8
 | 
			
		||||
        </li>
 | 
			
		||||
      {% endfor %}
 | 
			
		||||
      <li>
 | 
			
		||||
        <span class="dropdown-item accounting-clickable" data-bs-toggle="modal" data-bs-target="#accounting-search-modal">
 | 
			
		||||
        <span class="dropdown-item {% if report.report_chooser.is_search %} active {% endif %} accounting-clickable" data-bs-toggle="modal" data-bs-target="#accounting-search-modal">
 | 
			
		||||
          <i class="fa-solid fa-magnifying-glass"></i>
 | 
			
		||||
          {{ A_("Search") }}
 | 
			
		||||
        </span>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user