Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
6f9fb07e
Commit
6f9fb07e
authored
Jun 11, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text translations updated
parent
7323958b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
17 deletions
+13
-17
en.yml
assets/strings/en.yml
+11
-8
messaging_extension_action_preview_bot.py
bots/messaging_extension_action_preview_bot.py
+2
-9
No files found.
assets/strings/en.yml
View file @
6f9fb07e
...
...
@@ -10,22 +10,21 @@ en:
Use '%{cmd_help}' command for more info.
tenant_forbidden
:
|
Sorry, you do not have permission to communicate with this bot from your tenant.
Sorry, you do not have permission to communicate
with this bot using your tenant.
unknown_request
:
|
This request is not supported.
cmd_help
:
help
cmd_help
:
"
help"
cmd_portal
:
portal
cmd_portal
:
"
portal"
cmd_
sharepoint_acc
:
sharepoint
cmd_
mars_service
:
"
mars-auth"
cmd_mars_service
:
mars-service-acc
portal_text
:
"
Open
secured
portal"
portal_text
:
Open secured portal
portal_button_text
:
Open secured portal
portal_button_text
:
"
Open
secured
portal"
response_help
:
|
Conversation ID: %{conversation_id}<br/><br/>
...
...
@@ -37,3 +36,7 @@ en:
response_unknown_cmd
:
|
Unknown command received.<br/>
Use '%{cmd_help}' command for more info.
text_authorize
:
"
Authorize"
text_service_acc_auth
:
"
Service
account
authorization:"
bots/messaging_extension_action_preview_bot.py
View file @
6f9fb07e
...
...
@@ -388,8 +388,8 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
cmd_mars_service
=
i18n
.
t
(
"cmd_mars_service"
)
if
message_lower
==
cmd_mars_service
.
lower
():
header
=
"Service account authorization:"
title
=
"Start Authorization"
header
=
i18n
.
t
(
"text_service_acc_auth"
)
title
=
i18n
.
t
(
"text_authorize"
)
url
=
f
"https://{AppConfig.MARS_FQDN}/service-auth"
card
=
CardHelper
.
load_assets_card
(
"link_card"
,
context
=
dict
(
title
=
title
,
...
...
@@ -401,13 +401,6 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
)
return
if
message_lower
==
cmd_sharepoint_acc
.
lower
():
card
=
CardHelper
.
load_assets_card
(
"default_card"
)
attachments
=
[
CardFactory
.
adaptive_card
(
card
)]
await
turn_context
.
send_activity
(
Activity
(
type
=
ActivityTypes
.
message
,
attachments
=
attachments
)
)
return
if
message_lower
==
cmd_help
.
lower
():
tenant_id
=
turn_context
.
activity
.
conversation
.
tenant_id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment