-
Notifications
You must be signed in to change notification settings - Fork 140
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-408 Using materialistic alerts #495
base: master
Are you sure you want to change the base?
Conversation
@fossasia/susi-ai @mariobehling Please review. |
8311be9
to
3c0f4de
Compare
@zamhaq Please review. |
@mariobehling @ms10398 @fossasia/susi-ai Please review |
@hkedia321 @techpool Please approve. |
@zamhaq Please review and merge this. |
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.
Please see inline review @sk9331657
src/js/options.js
Outdated
@@ -37,9 +37,15 @@ if(micAccess) { | |||
audio: true | |||
}, (stream) => { | |||
stream.getTracks().forEach(track => track.stop()); | |||
displayNotification("success", " Mic Access Granted", 1000); | |||
|
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.
Remove extra line
src/js/options.js
Outdated
}, () => { | ||
console.log("no access"); | ||
displayNotification("error", " No Access", 1000); | ||
|
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.
Remove extra line
src/js/options.js
Outdated
}); | ||
|
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.
Remove extra line
src/js/options.js
Outdated
@@ -77,31 +83,31 @@ if(getVoice) { | |||
if(submitThemeColor) { | |||
submitThemeColor.addEventListener("click",()=>{ | |||
localStorage.setItem("theme",theme); | |||
alert("Success"); | |||
}); | |||
displayNotification("info", "Theme successfully changed", 1000); |
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.
Indent the file properly
src/js/options.js
Outdated
}); | ||
displayNotification("warning", " Restored Settings", 1000); | ||
|
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.
Same here
0c22512
to
1b5812e
Compare
1b5812e
to
6ef0536
Compare
@fragm3 Resolved Issues. |
Fixes #408
Checklist
master
branch.Short description of what this resolves:
Changes proposed in this pull request:
-Using materialistic alerts.