Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Conversation

@mohsen-deriv
Copy link
Contributor

@mohsen-deriv mohsen-deriv commented Jun 28, 2022

changes:

  • fixed duplicate idv notification error message.

co-authored : mitra@deriv.com

co-authored : <mitra@deriv.com>
@vercel
Copy link

vercel bot commented Jun 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
binary-static ✅ Ready (Inspect) Visit Preview Aug 17, 2022 at 3:16AM (UTC)

@github-actions
Copy link

github-actions bot commented Jun 28, 2022

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/binary-static/pull/7154](https://github.com/binary-com/binary-static/pull/7154)
- **URLs**:
    - **w/ App ID + Server**: https://binary-static-git-fork-michio-rework-fix-dupilcate-idv-n-9022c1.binary.sx/en/logged_inws.html?qa_server=frontend.binaryws.com&app_id=27931
    - **Original**: https://binary-static-git-fork-michio-rework-fix-dupilcate-idv-n-9022c1.binary.sx/en/logged_inws.html
- **App ID**: `27931`

habib-deriv
habib-deriv previously approved these changes Jun 28, 2022
Copy link
Contributor

@habib-deriv habib-deriv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 1223 to 1230
const showNoticeMessage = (text) => {
const reload_function = () => {
window.location.reload();
};

const button_reload = $('<button/>' , { class: 'button container' , type: 'button' , text: 'Try Again' }).on('click' , reload_function).css({ 'margin': '0 auto' ,'display': 'block' });
$('#content').empty().html($('<div/>', { class: 'container' }).append($('<p/>', { class: 'notice-msg center-text', text })).append(button_reload));
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const showNoticeMessage = (text) => {
const reload_function = () => {
window.location.reload();
};
const button_reload = $('<button/>' , { class: 'button container' , type: 'button' , text: 'Try Again' }).on('click' , reload_function).css({ 'margin': '0 auto' ,'display': 'block' });
$('#content').empty().html($('<div/>', { class: 'container' }).append($('<p/>', { class: 'notice-msg center-text', text })).append(button_reload));
};
const showNoticeMessage = (text) => {
const reload_function = () => {
window.location.reload();
};
const button_reload = $('<button/>' , { class: 'button container' , type: 'button' , text: 'Try Again' }).on('click' , reload_function).css({ 'margin': '0 auto' ,'display': 'block' });
$('#content').empty().html($('<div/>', { class: 'container' }).append($('<p/>', { class: 'notice-msg center-text', text })).append(button_reload));
};

I think it's best that we move this to the template jsx and attach an id with a default of hidden. That's how things are done in this project. Show/Hide 😅 we don't usually construct markup from JQuery like this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yashim-deriv , I applied the suggested changes, I was not aware of the ways of binary-com project.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

yashim-deriv
yashim-deriv previously approved these changes Jun 30, 2022
- updated node versions in package.json, circlci config and crowdin
github action
…hio-rework/binary-static into fix-dupilcate-idv-notification-error
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
2.9% 2.9% Duplication

@habib-deriv habib-deriv merged commit b2babbd into binary-com:master Aug 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants