From 221b4c2838f76b952487f01a664a04999d7699c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Wollse=CC=81n?= Date: Mon, 6 Jan 2020 19:09:22 +0200 Subject: [PATCH] Clarified that the menu action is refreshing both the surveys and combined topline listings --- src/index.ts | 8 ++++---- ...ts => menuRefreshSurveysAndCombinedToplineListings.ts} | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) rename src/menuActions/{menuRefreshCombinedToplineListing.ts => menuRefreshSurveysAndCombinedToplineListings.ts} (96%) diff --git a/src/index.ts b/src/index.ts index d13f7f3..46fa7b6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,7 @@ * Note: Global functions must be exposed to the (global as any) object, or it will not be picked up by gas-webpack-plugin. */ -import { menuRefreshCombinedToplineListing } from "./menuActions/menuRefreshCombinedToplineListing"; +import { menuRefreshSurveysAndCombinedToplineListings } from "./menuActions/menuRefreshSurveysAndCombinedToplineListings"; /* tslint:disable:only-arrow-functions */ @@ -14,10 +14,10 @@ import { menuRefreshCombinedToplineListing } from "./menuActions/menuRefreshComb const ui = SpreadsheetApp.getUi(); const menu = ui.createMenu("Gapminder Igno Survey Process"); menu.addItem( - `Refresh combined topline listing`, - "menuRefreshCombinedToplineListing" + `Refresh surveys and combined topline listings`, + "menuRefreshSurveysAndCombinedToplineListings" ); menu.addToUi(); }; -(global as any).menuRefreshCombinedToplineListing = menuRefreshCombinedToplineListing; +(global as any).menuRefreshSurveysAndCombinedToplineListings = menuRefreshSurveysAndCombinedToplineListings; diff --git a/src/menuActions/menuRefreshCombinedToplineListing.ts b/src/menuActions/menuRefreshSurveysAndCombinedToplineListings.ts similarity index 96% rename from src/menuActions/menuRefreshCombinedToplineListing.ts rename to src/menuActions/menuRefreshSurveysAndCombinedToplineListings.ts index babe6af..df2f74c 100644 --- a/src/menuActions/menuRefreshCombinedToplineListing.ts +++ b/src/menuActions/menuRefreshSurveysAndCombinedToplineListings.ts @@ -18,17 +18,17 @@ import Folder = GoogleAppsScript.Drive.Folder; import File = GoogleAppsScript.Drive.File; /** - * Menu item action for "Gapminder Igno Survey Process -> Refresh combined topline listing" + * Menu item action for "Gapminder Igno Survey Process -> Refresh surveys and combined topline listings" * * Notes: * - Creates the `surveys` and `topline_combo` worksheets if they don't exist * - Verifies that the first headers of the `surveys` and `topline_combo` worksheets are as expected */ -export function menuRefreshCombinedToplineListing() { +export function menuRefreshSurveysAndCombinedToplineListings() { refreshCombinedToplineListing(); SpreadsheetApp.getUi().alert( - "Refreshed the combined topline listing (based on files in the gs_results folder)." + "Refreshed the surveys and combined topline listings (based on files in the gs_results folder)." ); return;