Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/custom ringtone validation [WTEL-4814] #739

Merged
merged 6 commits into from
Aug 5, 2024

Conversation

liza-pohranichna
Copy link
Contributor

No description provided.

@@ -29,6 +29,7 @@
:autoplay="false"
/>
<wt-button
:disabled="savedRingtone === ringtone.name"
Copy link
Contributor

Choose a reason for hiding this comment

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

давай у комп'ютед)

@@ -47,16 +48,20 @@ export default {
isCustomRingtone: false,
ringtone: {},
options: [],
savedRingtone: undefined, // value from localStorage, we need undefined for comparison with ringtone.name when it
Copy link
Contributor

Choose a reason for hiding this comment

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

я так розумію, цей андефайнд необхідний для порівняння на стрічці 63
можливо, там можна просто додати перевірку на !!this.savedRingtone && ...===... ?

isRingtoneSaved() {
return !this.savedRingtone && !this.ringtone.name // if was chosen default ringtone
|| this.savedRingtone === this.ringtone.name;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

внесла зміни ось тут

@dlohvinov dlohvinov merged commit 36d935f into master Aug 5, 2024
1 check failed
@dlohvinov dlohvinov deleted the fix/custom-ringtone-validation branch August 5, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants