Rename menus to non-test text
This commit is contained in:
parent
5e1948421b
commit
d5d0aae48b
6
Code.ts
6
Code.ts
@ -1,7 +1,7 @@
|
|||||||
function onOpen() {
|
function onOpen() {
|
||||||
const ui = SpreadsheetApp.getUi();
|
const ui = SpreadsheetApp.getUi();
|
||||||
ui.createMenu('test')
|
ui.createMenu('CMS Document Generation')
|
||||||
.addItem('test1', 'test')
|
.addItem('Generate document for current row', 'generateForCurrentRow')
|
||||||
.addToUi();
|
.addToUi();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ function copyBody(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function test() {
|
function generateForCurrentRow() {
|
||||||
const cell = SpreadsheetApp.getActive().getCurrentCell();
|
const cell = SpreadsheetApp.getActive().getCurrentCell();
|
||||||
const template = DocumentApp.openById(
|
const template = DocumentApp.openById(
|
||||||
'1V0uMuM80BGpjpdt1AmuzlU97tDI_u-y2rOfdl4tkqmc'
|
'1V0uMuM80BGpjpdt1AmuzlU97tDI_u-y2rOfdl4tkqmc'
|
||||||
|
Reference in New Issue
Block a user