fixed Toast is briefly displayed on page load (#3725)
* fixed Toast is briefly displayed on page load * updated fix for Toast is briefly displayed on page load * updated the test html renderings
This commit is contained in:
Родитель
3d137e0b0e
Коммит
3612489dc7
|
@ -130,6 +130,11 @@ class ChromedashApp extends LitElement {
|
|||
this.drawerOpen = !IS_MOBILE;
|
||||
}
|
||||
|
||||
firstUpdated() {
|
||||
const toastEl = document.createElement('chromedash-toast');
|
||||
document.body.appendChild(toastEl);
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
this.loading = true;
|
||||
|
|
|
@ -158,8 +158,6 @@ limitations under the License.
|
|||
<chromedash-footer></chromedash-footer>
|
||||
</div>
|
||||
|
||||
<chromedash-toast msg="Welcome to chromestatus.com!"></chromedash-toast>
|
||||
|
||||
|
||||
<chromedash-legend></chromedash-legend>
|
||||
|
||||
|
|
|
@ -338,8 +338,6 @@ False
|
|||
<chromedash-footer></chromedash-footer>
|
||||
</div>
|
||||
|
||||
<chromedash-toast msg="Welcome to chromestatus.com!"></chromedash-toast>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -138,8 +138,6 @@ limitations under the License.
|
|||
<chromedash-footer></chromedash-footer>
|
||||
</div>
|
||||
|
||||
<chromedash-toast msg="Welcome to chromestatus.com!"></chromedash-toast>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -126,8 +126,6 @@ limitations under the License.
|
|||
<chromedash-footer></chromedash-footer>
|
||||
</div>
|
||||
|
||||
<chromedash-toast msg="Welcome to chromestatus.com!"></chromedash-toast>
|
||||
|
||||
{% block overlay %}{% endblock %}
|
||||
|
||||
{% block js %}{% endblock %}
|
||||
|
|
|
@ -78,8 +78,6 @@ limitations under the License.
|
|||
bannerTime="{{banner_time}}">
|
||||
</chromedash-app>
|
||||
|
||||
<chromedash-toast msg="Welcome to chromestatus.com!"></chromedash-toast>
|
||||
|
||||
<script src="https://www.googletagmanager.com/gtag/js?id=UA-179341418-1" async nonce="{{nonce}}"></script>
|
||||
|
||||
{#
|
||||
|
|
Загрузка…
Ссылка в новой задаче