Bug 1545011 - added closing button to error messages on sidebar r=daisuke,jdescottes
authorOla Gasidlo <ogasidlo@mozilla.com>
Mon, 29 Apr 2019 08:50:46 +0000
changeset 530535 c2d1f25ac62f416175d3a91bc2eca6ae42556e7c
parent 530534 6d240e54b7ce9e47eb6f65785c8506f9dec39c4a
child 530536 185cd658ce9a78be2b1b99c4cd65fcc61a3aec4c
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdaisuke, jdescottes
bugs1545011
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1545011 - added closing button to error messages on sidebar r=daisuke,jdescottes Make the connection error + warning messages on the sidebar closeable Differential Revision: https://phabricator.services.mozilla.com/D28676
devtools/client/aboutdebugging-new/src/components/sidebar/SidebarRuntimeItem.js
--- a/devtools/client/aboutdebugging-new/src/components/sidebar/SidebarRuntimeItem.js
+++ b/devtools/client/aboutdebugging-new/src/components/sidebar/SidebarRuntimeItem.js
@@ -67,16 +67,17 @@ class SidebarRuntimeItem extends PureCom
     if (!flag) {
       return null;
     }
 
     return Message(
       {
         level,
         className: `${className} sidebar-runtime-item__message`,
+        isCloseable: true,
       },
       Localized(
         {
           id: localizationId,
         },
         dom.p({ className: "word-wrap-anywhere" }, localizationId)
       )
     );