mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2026-09-18 15:51:36 -04:00
DEV: Add loading spinner (#20)
* WIP: Add loading spinner * DEV: Linting fixes * DEV: Make `loading` a `@tracked` property
This commit is contained in:
@@ -16,6 +16,7 @@ export default class SpreadsheetEditor extends Component {
|
||||
@tracked showEditReason = false;
|
||||
spreadsheet = null;
|
||||
defaultColWidth = 150;
|
||||
@tracked loading = null;
|
||||
|
||||
// Getters:
|
||||
get isEditingTable() {
|
||||
@@ -92,9 +93,12 @@ export default class SpreadsheetEditor extends Component {
|
||||
|
||||
// Helper Methods:
|
||||
loadLibraries() {
|
||||
return loadScript(settings.theme_uploads_local.jsuites).then(() => {
|
||||
return loadScript(settings.theme_uploads_local.jspreadsheet);
|
||||
});
|
||||
this.loading = true;
|
||||
return loadScript(settings.theme_uploads_local.jsuites)
|
||||
.then(() => {
|
||||
return loadScript(settings.theme_uploads_local.jspreadsheet);
|
||||
})
|
||||
.finally(() => (this.loading = false));
|
||||
}
|
||||
|
||||
buildNewTable() {
|
||||
|
||||
Reference in New Issue
Block a user