Skip to content

Commit

Permalink
Add disableRenameParams testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kudinov committed Oct 24, 2024
1 parent 5b7658f commit 11717e4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/app/components/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Input: FC<Props> = props => {
return (
<>
<InputStyled {...props} />
{!props.type && props.value && <CloseIcon onClick={handleClear} id={`${props.id}.field-clear`} />}
{!props.type && !!props.value && <CloseIcon onClick={handleClear} id={`${props.id}.field-clear`} />}
</>
)
}
Expand Down
7 changes: 6 additions & 1 deletion frontend/app/modules/sync-request/sync-request.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,13 @@ export class SyncRequestStore {

async sendAppEvent(isSync: boolean) {
try {
Bridge?.disableRenameParams()

const response = (await Bridge?.sendBotEvent({
method: 'menu',
params: {
key1: 'value1',
under_score_value: 'value1',
camelCaseValue: 'value2',
},
sync_request: isSync,
})) as StatusResponse
Expand All @@ -94,6 +97,8 @@ export class SyncRequestStore {
})
} catch (e) {
this.rootStore.toastStore.showToast(`Ошибка при выполнении запроса ${e?.message}`)
} finally {
Bridge?.enableRenameParams()
}
}
}
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-feature-smartapp",
"version": "2.5.3",
"version": "2.5.4",
"description": "SmartApp with all features",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion frontend/smartapp-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"manifestVersion": "1.0.0",
"smartAppVersion": "",
"bundlePath": "",
"changeLog": "Тест фикса синхронных событий"
"changeLog": "Тестирование disableRenameParams()"
}

0 comments on commit 11717e4

Please sign in to comment.