(core) Fix widget loading spinner title

Summary:
The loading spinner would always display
'Building Table widget' when creating or changing
a widget. This fixes the title to reflect the selected
widget type.

Test Plan:
Updated existing browser tests to verify the loading spinner
title includes the correct widget type.

Reviewers: dsagal, paulfitz

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2863
This commit is contained in:
George Gevoian
2021-06-14 14:58:22 -07:00
parent 3af6dd46ea
commit f613b68a9e
2 changed files with 7 additions and 3 deletions

View File

@@ -212,7 +212,10 @@ export async function spinnerModal<T>(
return [
cssModalSpinner.cls(''),
cssModalTitle(title),
cssModalTitle(
title,
testId('modal-spinner-title'),
),
cssSpinner(loadingSpinner()),
testId('modal-spinner'),
];