Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GilbertCherrie committed Oct 28, 2024
1 parent d3686fa commit 75a3f61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/helpers/application_helper/button/vm_perf.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class ApplicationHelper::Button::VmPerf < ApplicationHelper::Button::Basic
needs :@record

# def disabled?
# @error_message = _('No Capacity & Utilization data has been collected for this VM') unless @record.has_perf_data?
# @error_message.present?
# end
def disabled?
@error_message = _('No Capacity & Utilization data has been collected for this VM') unless @record.has_perf_data?
@error_message.present?
end
end
1 change: 1 addition & 0 deletions app/javascript/components/gtl-view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ const GtlView = ({
const [state, dispatch] = useReducer(gtlReducer, initState);

useEffect(() => {
// If id is explorer_wide, change back to explorer to ensure search bar fits on the same line of the page.
if (document.getElementById('explorer_wide')) {
document.getElementById('explorer_wide').setAttribute('id', 'explorer');
}
Expand Down
2 changes: 2 additions & 0 deletions app/javascript/react/textual_summary_wrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { TextualSummary } from '../components/textual_summary';
import textualSummaryGenericClick from './textual_summary_click';

export default (props) => {
// If id is explorer, change to explorer_wide on textual summary page to fit long titles on the same line.
// Textual summary page has no search bar so we can use 100% width for the title.
if (document.getElementById('explorer')) {
document.getElementById('explorer').setAttribute('id', 'explorer_wide');
}
Expand Down

0 comments on commit 75a3f61

Please sign in to comment.