Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
backup
Drip
Commits
355bcbe8
Commit
355bcbe8
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Extract labels
parent
ebb628c6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/labels.js
+10
-0
10 additions, 0 deletions
components/labels.js
components/settings.js
+7
-6
7 additions, 6 deletions
components/settings.js
with
17 additions
and
6 deletions
components/labels.js
0 → 100644
+
10
−
0
View file @
355bcbe8
export
const
settings
=
{
errors
:
{
noData
:
'
There is no data to export
'
,
couldNotConvert
:
'
Could not convert data to CSV
'
,
problemSharing
:
'
There was a problem sharing the data export file
'
},
exportTitle
:
'
My Drip data export
'
,
exportSubject
:
'
My Drip data export
'
,
buttonLabel
:
'
Export data
'
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
components/settings.js
+
7
−
6
View file @
355bcbe8
...
...
@@ -9,6 +9,7 @@ import {
import
Share
from
'
react-native-share
'
import
getDataAsCsvDataUri
from
'
../lib/export-to-csv
'
import
styles
from
'
../styles/index
'
import
{
settings
as
labels
}
from
'
./labels
'
export
default
class
Settings
extends
Component
{
constructor
(
props
)
{
...
...
@@ -31,27 +32,27 @@ export default class Settings extends Component {
try
{
data
=
getDataAsCsvDataUri
()
if
(
!
data
)
{
return
Alert
.
alert
(
'
There is no data to export
'
)
return
Alert
.
alert
(
labels
.
errors
.
noData
)
}
}
catch
(
err
)
{
console
.
error
(
err
)
return
Alert
.
alert
(
'
Could not convert data to CSV
'
)
return
Alert
.
alert
(
labels
.
errors
.
couldNotConvert
)
}
try
{
await
Share
.
open
({
title
:
'
My Drip data
export
'
,
title
:
labels
.
export
Title
,
url
:
data
,
subject
:
'
My Drip data export
'
,
subject
:
labels
.
exportSubject
,
type
:
'
text/csv
'
,
showAppsToView
:
true
})
}
catch
(
err
)
{
console
.
error
(
err
)
return
Alert
.
alert
(
'
There was a
problem
s
haring
the data export file
'
)
return
Alert
.
alert
(
labels
.
errors
.
problem
S
haring
)
}
}}
title
=
"
Export data
"
>
title
=
{
labels
.
buttonLabel
}
>
<
/Button
>
<
/View
>
<
/View
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment