prf: getAboveTablePanelConfigs -> makeAboveTablePanelConfigs for more action oriented verbs

pull/2052/head
Cameron Yick 2023-04-20 01:12:03 -04:00
rodzic 0536f5d662
commit cef674044c
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -47,7 +47,7 @@ const datasetteManager = {
datasetteManager.plugins.set(name, pluginMetadata);
// If the plugin partipates in the panel... update the panel.
if (pluginMetadata.getAboveTablePanelConfigs) {
if (pluginMetadata.makeAboveTablePanelConfigs) {
datasetteManager.renderAboveTablePanel();
}
},
@ -120,9 +120,9 @@ const datasetteManager = {
}
datasetteManager.plugins.forEach((plugin, pluginName) => {
const { getAboveTablePanelConfigs: getPanelConfigs } = plugin;
const { makeAboveTablePanelConfigs } = plugin;
if (getPanelConfigs) {
if (makeAboveTablePanelConfigs) {
const controls = aboveTablePanel.querySelector('.tab-controls');
const contents = aboveTablePanel.querySelector('.tab-contents');

Wyświetl plik

@ -33,7 +33,7 @@ const addPlugins = (manager) => {
manager.registerPlugin("panel-plugin-graphs", {
version: 0.1,
getAboveTablePanelConfigs: () => {
makeAboveTablePanelConfigs: () => {
return [
{
id: 'first-panel',
@ -62,7 +62,7 @@ const addPlugins = (manager) => {
manager.registerPlugin("panel-plugin-maps", {
version: 0.1,
getAboveTablePanelConfigs: () => {
makeAboveTablePanelConfigs: () => {
return [
{
// ID only has to be unique within a plugin, manager namespaces for you