Skip to content

Commit

Permalink
Merge branch 'master' of github.com:christophrumpel/nova-notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Rumpel committed Mar 5, 2019
2 parents d91088e + f91c056 commit ae6974f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Christoph Rumpel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

With this [Nova](https://nova.laravel.com) tool:
- You can overview all sent and failed notifications.
- You can send out notifications.
- You can send out notifications. (depening on the notification's dependencies)
- All sent or failed notifications will be stored in the database.

[![Latest Version on Packagist](https://img.shields.io/packagist/v/christophrumpel/nova-notifications.svg?style=flat-square)](https://packagist.org/packages/christophrumpel/nova-notifications)
Expand Down
1 change: 0 additions & 1 deletion resources/js/components/NotificationModalFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
}),
methods: {
handleSubmit: function() {
console.log(this.selectedNotification);
this.$root.$emit('submitModal', this.selectedNotification.parameters, this.formObj)
},
handleCancel: function() {
Expand Down
3 changes: 0 additions & 3 deletions resources/js/components/NotificationsSend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
});
this.$root.$on('notifiableSelected', (event) => {
console.log(event);
})
},
methods: {
Expand Down Expand Up @@ -119,12 +118,10 @@
this.$toasted.show('Notification has been sent!', {type: 'success'});
this.selectedNotification = null;
}).catch(error => {
console.log(error);
this.$toasted.show('There has been an error!', {type: 'error'});
})
},
setParams(params) {
console.log(params);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/NovaNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class NovaNotifications extends Tool
*/
public function boot()
{
Nova::script('nova-notifications', __DIR__.'/../dist/js/tool.js');
Nova::style('nova-notifications', __DIR__.'/../dist/css/tool.css');
Nova::script('christophrumpel-nova-notifications', __DIR__.'/../dist/js/tool.js');
Nova::style('christophrumpel-nova-notifications', __DIR__.'/../dist/css/tool.css');
}

/**
Expand Down

0 comments on commit ae6974f

Please sign in to comment.