mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:23:10 +00:00
for support tickets include browser/os and hide email address if
set already. This way we know who they are logged in with which has caused condfusion.
This commit is contained in:
parent
3d719af71e
commit
633839c98b
3 changed files with 1138 additions and 3 deletions
|
@ -12,9 +12,9 @@ script(type='text/ng-template', id='supportModalTemplate')
|
|||
| #{translate("subject")}
|
||||
.form-group
|
||||
input.field.text.medium.span8.form-control(ng-model="form.subject", maxlength='255', tabindex='1', onkeyup='')
|
||||
label.desc
|
||||
label.desc(ng-show="'#{getUserEmail()}'.length < 1")
|
||||
| #{translate("email")}
|
||||
.form-group
|
||||
.form-group(ng-show="'#{getUserEmail()}'.length < 1")
|
||||
input.field.text.medium.span8.form-control(ng-model="form.email", ng-init="form.email = '#{getUserEmail()}'", type='email', spellcheck='false', value='', maxlength='255', tabindex='2')
|
||||
label#title12.desc
|
||||
| #{translate("project_url")} (#{translate("optional")})
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
define [
|
||||
"base"
|
||||
], (App) ->
|
||||
"libs/platform"
|
||||
], (App, platform) ->
|
||||
|
||||
|
||||
App.controller 'ContactModal', ($scope, $modal) ->
|
||||
|
@ -28,6 +29,8 @@ define [
|
|||
message: message or ""
|
||||
subject: $scope.form.subject + " - [#{ticketNumber}]"
|
||||
labels: "support"
|
||||
about: "<div>browser: #{platform?.name} #{platform?.version}</div>
|
||||
<div>os: #{platform?.os?.family} #{platform?.os?.version}</div>"
|
||||
|
||||
Groove.createTicket params, (err, json)->
|
||||
$scope.sent = true
|
||||
|
@ -59,3 +62,5 @@ define [
|
|||
Groove.createTicket params, (err, json)->
|
||||
$scope.sent = true
|
||||
$scope.$apply()
|
||||
|
||||
|
||||
|
|
1130
services/web/public/js/libs/platform.js
Normal file
1130
services/web/public/js/libs/platform.js
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue