-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
@@ -29,6 +29,7 @@ | |||
:autoplay="false" | |||
/> | |||
<wt-button | |||
:disabled="savedRingtone === ringtone.name" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
внесла зміни ось тут
No description provided.