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-408 Using materialistic alerts #495

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

championpaddler
Copy link
Member

Fixes #408

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream master branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

Short description of what this resolves:

screenshot from 2018-12-05 21-36-55

Changes proposed in this pull request:

-Using materialistic alerts.

@championpaddler
Copy link
Member Author

@fossasia/susi-ai @mariobehling Please review.

src/css/notifications.min.css Show resolved Hide resolved
src/options.html Outdated Show resolved Hide resolved
src/options.html Outdated Show resolved Hide resolved
@championpaddler
Copy link
Member Author

@zamhaq Please review.

@fossasia fossasia deleted a comment Dec 7, 2018
@fossasia fossasia deleted a comment Dec 7, 2018
@fossasia fossasia deleted a comment from rajvaibhavdubey Dec 7, 2018
@fossasia fossasia deleted a comment Dec 7, 2018
@fossasia fossasia deleted a comment Dec 7, 2018
@fossasia fossasia deleted a comment from rajvaibhavdubey Dec 7, 2018
@fossasia fossasia deleted a comment from rajvaibhavdubey Dec 7, 2018
@fossasia fossasia deleted a comment Dec 7, 2018
@fossasia fossasia deleted a comment Dec 7, 2018
@fossasia fossasia deleted a comment from rajvaibhavdubey Dec 7, 2018
@fossasia fossasia deleted a comment from rajvaibhavdubey Dec 7, 2018
@fossasia fossasia deleted a comment from rajvaibhavdubey Dec 7, 2018
@fossasia fossasia deleted a comment Dec 7, 2018
@fossasia fossasia deleted a comment Dec 7, 2018
@fossasia fossasia deleted a comment from rajvaibhavdubey Dec 7, 2018
@fossasia fossasia deleted a comment Dec 7, 2018
@fossasia fossasia deleted a comment from rajvaibhavdubey Dec 7, 2018
@fossasia fossasia deleted a comment from rajvaibhavdubey Dec 7, 2018
@championpaddler
Copy link
Member Author

@mariobehling @ms10398 @fossasia/susi-ai Please review

@championpaddler
Copy link
Member Author

@hkedia321 @techpool Please approve.

@championpaddler
Copy link
Member Author

@zamhaq Please review and merge this.

@championpaddler
Copy link
Member Author

@gabru-md @DNS-404 Please review.

Copy link
Contributor

@fragm3 fragm3 left a 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

@@ -37,9 +37,15 @@ if(micAccess) {
audio: true
}, (stream) => {
stream.getTracks().forEach(track => track.stop());
displayNotification("success", " Mic Access Granted", 1000);

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extra line

}, () => {
console.log("no access");
displayNotification("error", " No Access", 1000);

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extra line

});

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extra line

@@ -77,31 +83,31 @@ if(getVoice) {
if(submitThemeColor) {
submitThemeColor.addEventListener("click",()=>{
localStorage.setItem("theme",theme);
alert("Success");
});
displayNotification("info", "Theme successfully changed", 1000);
Copy link
Contributor

Choose a reason for hiding this comment

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

Indent the file properly

});
displayNotification("warning", " Restored Settings", 1000);

Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@championpaddler
Copy link
Member Author

@fragm3 Resolved Issues.

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.

Using Materialistic Alerts instead of document alert for notifying users
4 participants