-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Share email to ocs #1801
Share email to ocs #1801
Conversation
@rullzer, thanks for your PR! By analyzing the history of the files in this pull request, we identified @PVince81, @tomneedham and @blizzz to be potential reviewers. |
Also it seems the autocomplete for e-mail addresses is broken. So I disabled it for now. @nickvergessen we can't just search by e-mail on the sharee api right? |
I don't think so, because the "email address style" is actually a remote share, right? cc @schiessle |
@MorrisJobke it just sends the link from the link share field.
we can make it do so. As far as I can see it just looks into the contacts app for remote users atm. |
@nickvergessen yeah it looks trough all the contacts for e-mail completion it seems. Would be nice if we could add that. I guess we could abuse the SHARE_TYPE_EMAIL for that. Bjorn might also use that in his share by email PR. But searching there is the same I'd say. |
92788cc
to
5ce02d1
Compare
Yeah! Thanks a lot @rullzer :) |
dataType: 'json' | ||
}). fail(function(xhr) { | ||
// FIXME: a model should not show dialogs | ||
OC.dialogs.alert(t('core', result.data.message), t('core', 'Warning')); |
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.
Where is the result
coming from?
} | ||
); | ||
dataType: 'json' | ||
}). fail(function(xhr) { |
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.
Maybe the xhr
should be named result
? 😉
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.
yes copy paste error
5ce02d1
to
578ac48
Compare
Current coverage is 57.78% (diff: 0.00%)@@ master #1801 diff @@
==========================================
Files 1076 1076
Lines 61306 61854 +548
Methods 6871 7020 +149
Messages 0 0
Branches 0 0
==========================================
+ Hits 35264 35742 +478
- Misses 26042 26112 +70
Partials 0 0
|
Signed-off-by: Roeland Jago Douma <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
578ac48
to
b7046d3
Compare
Ok lets close this in favor of #1916 |
Fixes #1277
Currently we use the mailer as is. Which is not really testable. But I want a working version in sooner rather than later.
CC: @MorrisJobke @nickvergessen @LukasReschke @icewind1991