Skip to content

Commit

Permalink
fixed button src issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DaKingKong committed Apr 11, 2022
1 parent f8cf950 commit 6a50878
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ringcentral-google-drive-notification-add-in",
"version": "0.1.5",
"version": "0.1.6",
"description": "RingCentral Add-In App",
"keywords": [
"RingCentral",
Expand All @@ -22,7 +22,8 @@
"deploy": "npm run serverless-deploy",
"test": "set NODE_ENV=test&&jest --forceExit -i",
"test-coverage": "set NODE_ENV=test&&jest --coverage",
"tunnel": "lite-http-tunnel start 6066"
"tunnel": "lite-http-tunnel start 6066",
"release": "npm run test&&node bin/index.js release"
},
"devDependencies": {
"@babel/core": "^7.11.6",
Expand Down
2 changes: 1 addition & 1 deletion src/server/adaptiveCardPayloads/authCard.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"type": "Action.OpenUrl",
"url": "${link}"
},
"url": "${buttonImageUrl}"
"url": "https://developers.google.com/identity/images/btn_google_signin_dark_normal_web.png"
},
{
"type": "ColumnSet",
Expand Down
3 changes: 1 addition & 2 deletions src/server/lib/cardBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ function fileInfoCard(botId, googleFile) {
function authCard(authLink) {
const template = new Template(authCardTemplateJson);
const cardData = {
link: authLink,
buttonImageUrl: `${process.env.RINGCENTRAL_CHATBOT_SERVER}/static/google-login-button.png`
link: authLink
}
const card = template.expand({
$root: cardData
Expand Down

0 comments on commit 6a50878

Please sign in to comment.