Skip to content

Commit 0a39809

Browse files
Merge pull request #68 from docusign/DEVDOCS-7334
Devdocs 7334
2 parents 38b16b6 + 2216174 commit 0a39809

File tree

6 files changed

+4366
-8
lines changed

6 files changed

+4366
-8
lines changed

config/appsettings.example.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"documentation": null,
2525
"multiSourceChooser": false,
2626
"quickstart" : "{QUICKSTART_VALUE}",
27+
"quickACG" : "{QUICKACG_VALUE}",
2728
"roomsApiUrl": "https://demo.rooms.docusign.com",
2829
"clickAPIUrl": "https://demo.docusign.net/clickapi",
2930
"adminAPIUrl": "https://api-d.docusign.net/management",

lib/eSignature/controllers/eg001EmbeddedSigning.js

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,25 @@ eg001EmbeddedSigning.getController = (req, res) => {
8585
// since they have not yet entered any information into the form.
8686
const tokenOK = req.dsAuth.checkToken();
8787
if (tokenOK) {
88-
res.render('pages/examples/eg001EmbeddedSigning', {
89-
eg: eg, csrfToken: req.csrfToken(),
90-
title: "Use embedded signing",
91-
sourceFile: path.basename(__filename),
92-
sourceUrl: 'https://github.com/docusign/code-examples-node/blob/master/eg001EmbeddedSigning.js',
93-
documentation: dsConfig.documentation + eg,
94-
showDoc: dsConfig.documentation
95-
});
88+
if (res.locals.quickACG) {
89+
res.render('pages/examples/quickEmbeddedSigning', {
90+
eg: eg, csrfToken: req.csrfToken(),
91+
title: "Use embedded signing",
92+
sourceFile: path.basename(__filename),
93+
sourceUrl: 'https://github.com/docusign/code-examples-node/blob/master/eg001EmbeddedSigning.js',
94+
documentation: dsConfig.documentation + eg,
95+
showDoc: dsConfig.documentation
96+
});
97+
} else {
98+
res.render('pages/examples/eg001EmbeddedSigning', {
99+
eg: eg, csrfToken: req.csrfToken(),
100+
title: "Use embedded signing",
101+
sourceFile: path.basename(__filename),
102+
sourceUrl: 'https://github.com/docusign/code-examples-node/blob/master/eg001EmbeddedSigning.js',
103+
documentation: dsConfig.documentation + eg,
104+
showDoc: dsConfig.documentation
105+
});
106+
}
96107
} else {
97108
// Save the current operation so it will be resumed after authentication
98109
req.dsAuth.setEg(req, eg);

0 commit comments

Comments
 (0)