diff --git a/app/components/hooks-list-item.coffee b/app/components/hooks-list-item.coffee index 7cf32639..1a7b3d72 100644 --- a/app/components/hooks-list-item.coffee +++ b/app/components/hooks-list-item.coffee @@ -8,4 +8,7 @@ HooksListItemComponent = Ember.Component.extend handleToggleError: -> @set("errorMessage", "There was an error") + close: -> + @set("errorMessage", null) + `export default HooksListItemComponent` diff --git a/app/styles/app/layouts/profile.sass b/app/styles/app/layouts/profile.sass index f5394b08..83ebceee 100644 --- a/app/styles/app/layouts/profile.sass +++ b/app/styles/app/layouts/profile.sass @@ -213,3 +213,9 @@ p.profile-user-last height: 1.2em background: #f1b6ad transform: rotate(45deg) + .close + @extend .icon + position: absolute + top: 1em + right: 1em + @extend .icon--dismiss-red diff --git a/app/templates/components/hooks-list-item.hbs b/app/templates/components/hooks-list-item.hbs index 4a1e485c..b8cd6234 100644 --- a/app/templates/components/hooks-list-item.hbs +++ b/app/templates/components/hooks-list-item.hbs @@ -13,6 +13,8 @@ {{#if errorMessage}}
-

{{errorMessage}}

+

+ {{errorMessage}} +

{{/if}}