Skip to content

Commit

Permalink
Update AutoRefreshDialog.js
Browse files Browse the repository at this point in the history
  • Loading branch information
difemaro committed Oct 30, 2024
1 parent 209a5fc commit c4877dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Extensiones/Samples/AutoRefresh_seconds/AutoRefreshDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@

let dashboard = tableau.extensions.dashboardContent.dashboard;
let visibleDatasources = [];
let settings = tableau.extensions.settings.getAll();
$('#interval').val(settings.intervalkey);

// Load saved selected data sources
selectedDatasources = parseSettingsForActiveDataSources();


// Loop through datasources in this sheet and create a checkbox UI
// element for each one. The existing settings are used to
// determine whether a datasource is checked by default or not.
Expand Down Expand Up @@ -122,7 +127,7 @@
tableau.extensions.settings.set(datasourcesSettingsKey, JSON.stringify(selectedDatasources));
tableau.extensions.settings.set(intervalkey, $('#interval').val());
tableau.extensions.settings.saveAsync().then((newSavedSettings) => {
tableau.extensions.ui.closeDialog($('#interval').val());
tableau.extensions.ui.closeDialog($('#interval').val());
});
}
})();

0 comments on commit c4877dd

Please sign in to comment.