-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Notifications for remote shares #22253
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
Changes from all commits
3ff88c8
a4a7cf4
49dd693
cb8024c
31cf3b8
c769f57
65e1e4a
75d552b
fa89376
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,9 +69,21 @@ | |
| filesApp: null, | ||
|
|
||
| attach: function(filesApp) { | ||
| var self = this; | ||
| this.filesApp = filesApp; | ||
| this.processIncomingShareFromUrl(); | ||
| this.processSharesToConfirm(); | ||
|
|
||
| if (!$('#header').find('div.notifications').length) { | ||
| // No notification app, display the modal | ||
| this.processSharesToConfirm(); | ||
| } | ||
|
|
||
| $('body').on('OCA.Notification.Action', function(e) { | ||
| if (e.notification.app === 'files_sharing' && e.notification.object_type === 'remote_share' && e.action.type === 'POST') { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. underscore case (object_type) is usually not accepted in the JS coding style, but I guess this comes from the original JSON structure, so ok to keep
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, that's json |
||
| // User accepted a remote share reload | ||
| self.filesApp.fileList.reload(); | ||
| } | ||
| }); | ||
| }, | ||
|
|
||
| /** | ||
|
|
||
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.
you could put that in an else block (optional)