Skip to content

Commit

Permalink
Change alert types for conversation modal
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsmith committed Dec 27, 2017
1 parent 74d25c9 commit 6b989f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/conversations/new-conversation-modal.js
Expand Up @@ -9,6 +9,7 @@ const SAVE_SUCCESS = 'Your message is sending now.';
export default Component.extend({
classNames: ['new-conversation-modal-container'],

flashOptions: { fixed: true, icon: 'comment', sticky: false, timeout: 5000 },
initiatedBy: null,
message: null,
project: null,
Expand Down Expand Up @@ -73,7 +74,7 @@ export default Component.extend({
let unsavedConversation = get(message, 'conversations.firstObject');

let onSaved = () => {
get(this, 'flashMessages').clearMessages().success(SAVE_SUCCESS);
get(this, 'flashMessages').success(SAVE_SUCCESS, get(this, 'flashOptions'));
get(this, 'store').unloadRecord(unsavedConversation);
};

Expand Down
4 changes: 4 additions & 0 deletions app/styles/_alerts.scss
Expand Up @@ -58,6 +58,10 @@
transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
width: 310px;

i {
padding-right: 5px;
}

p {
margin: 5px 0;
}
Expand Down

0 comments on commit 6b989f7

Please sign in to comment.