⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 294759 in webkit


Ignore:
Timestamp:
May 24, 2022, 1:14:02 PM (4 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Timelines Tab: Screenshots: show placeholder text when there's no images
https://bugs.webkit.org/show_bug.cgi?id=240851

Reviewed by Patrick Angle.

  • Source/WebInspectorUI/UserInterface/Views/ScreenshotsTimelineView.js:

(WI.ScreenshotsTimelineView.prototype.layout):

  • Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js:

Canonical link: https://commits.webkit.org/250927@main

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js

    r294374 r294759  
    10301030localizedStrings["No response cookies."] = "No response cookies.";
    10311031localizedStrings["No response headers"] = "No response headers";
     1032/* Placeholder text shown when there are no images to display in the Screenshots timeline. */
     1033localizedStrings["No screenshots @ Screenshots Timeline"] = "No screenshots";
    10321034localizedStrings["No search results"] = "No search results";
    10331035localizedStrings["No search string"] = "No search string";
  • trunk/Source/WebInspectorUI/UserInterface/Views/ScreenshotsTimelineView.js

    r294166 r294759  
    8080            });
    8181        }       
     82
     83        if (!this.element.childNodes.length)
     84            this.element.appendChild(WI.createMessageTextView(WI.UIString("No screenshots", "No screenshots @ Screenshots Timeline", "Placeholder text shown when there are no images to display in the Screenshots timeline.")));
    8285    }
    8386
Note: See TracChangeset for help on using the changeset viewer.