]> git.ardis.lu - sheets-db/commitdiff
Update menu name
authorArdis Lu <ardisglu@gmail.com>
Sat, 18 Dec 2021 07:23:59 +0000 (23:23 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sat, 18 Dec 2021 07:23:59 +0000 (23:23 -0800)
Google's add-on style guide suggests using "Start" for this use case.

Code.gs
README.md

diff --git a/Code.gs b/Code.gs
index 434032526ea53f36c478bfce8fa454edb48723b9..250345096804b9dd14e9d2bb72a17931a46db7e2 100644 (file)
--- a/Code.gs
+++ b/Code.gs
@@ -9,7 +9,7 @@ function onOpen() {
 
   ui.createMenu('🔥 sheets-db')
     .addItem('❓ Help', 'showHelp')
-    .addItem('🟢 Open sidebar', 'openSidebar')
+    .addItem('🟢 Start', 'showSidebar')
     .addToUi();
 }
 
@@ -20,7 +20,7 @@ function showHelp() {
 
 USAGE:
 - Edit the data on this workbook like you would on any other Google Sheet, noting KEY ASSUMPTIONS below.
-- When ready, press the "Open sidebar" button to generate a SQLite database from the data on this workbook!
+- When ready, press the "🟢 Start" button to generate a SQLite database from the data on this workbook!
 
 KEY ASSUMPTIONS: 
 - Each tab in this workbook is a data table
@@ -33,7 +33,7 @@ KEY ASSUMPTIONS:
   ui.alert('Help', helpMessage, ui.ButtonSet.OK);
 }
 
-function openSidebar() {
+function showSidebar() {
   const ui = SpreadsheetApp.getUi();
   const html = HtmlService.createHtmlOutputFromFile('query-to-db').setTitle('🔥 sheets-db');
   ui.showSidebar(html);
index fa73d4ea4f58d8d112f812ef34f216fdeb99dff8..92b1d15df7f7d0107c4d24fa102d6f6712d2e79e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -35,6 +35,6 @@ This setup is **NOT** necessary if you only want to generate SQLite databases.
 
 1. Refresh the Google Sheet and wait for the GAS code to finish loading.
 2. See the new custom menu button `🔥 sheets-db`. Press `🔥 sheets-db > ❓ Help` for end-user instructions.
-3. Press `🔥 sheets-db > 🟢 Open sidebar` to initialize the SQLite sidebar.
+3. Press `🔥 sheets-db > 🟢 Start` to initialize the SQLite sidebar.
 4. Click the buttons on the sidebar to generate the SQLite database and/or upload the file to Backblaze.
 5. Upload the .sqlite3 file to your favorite SQLite client (example: [sqliteviz](https://lana-k.github.io/sqliteviz/#/workspace)), to run queries on the database.
This page took 0.038633 seconds and 4 git commands to generate.