Rename menus to non-test text

This commit is contained in:
Adam Goldsmith 2020-03-17 16:22:59 -04:00
parent 5e1948421b
commit d5d0aae48b

View File

@ -1,7 +1,7 @@
function onOpen() {
const ui = SpreadsheetApp.getUi();
ui.createMenu('test')
.addItem('test1', 'test')
ui.createMenu('CMS Document Generation')
.addItem('Generate document for current row', 'generateForCurrentRow')
.addToUi();
}
@ -43,7 +43,7 @@ function copyBody(
}
}
function test() {
function generateForCurrentRow() {
const cell = SpreadsheetApp.getActive().getCurrentCell();
const template = DocumentApp.openById(
'1V0uMuM80BGpjpdt1AmuzlU97tDI_u-y2rOfdl4tkqmc'