Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amundsen_dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Surendar Reddy Mangannagari
amundsen_dev
Commits
f66359f8
Unverified
Commit
f66359f8
authored
May 18, 2020
by
Tamika Tannis
Committed by
GitHub
May 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update configs (#454)
parent
0368e371
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
constants.ts
...static/js/components/TableDetail/OwnerEditor/constants.ts
+2
-0
index.tsx
...on/static/js/components/TableDetail/OwnerEditor/index.tsx
+4
-4
config-types.ts
amundsen_application/static/js/config/config-types.ts
+2
-2
No files found.
amundsen_application/static/js/components/TableDetail/OwnerEditor/constants.ts
0 → 100644
View file @
f66359f8
export
const
DEFAULT_ERROR_TEXT
=
'There was a problem with the request, please reload the page.'
;
export
const
USERID_LABEL
=
'email address'
;
amundsen_application/static/js/components/TableDetail/OwnerEditor/index.tsx
View file @
f66359f8
...
@@ -12,13 +12,13 @@ import { UpdateMethod, UpdateOwnerPayload } from 'interfaces';
...
@@ -12,13 +12,13 @@ import { UpdateMethod, UpdateOwnerPayload } from 'interfaces';
// TODO: Use css-modules instead of 'import'
// TODO: Use css-modules instead of 'import'
import
'./styles.scss'
;
import
'./styles.scss'
;
const
DEFAULT_ERROR_TEXT
=
'There was a problem with the request, please reload the page.'
;
import
{
GlobalState
}
from
'ducks/rootReducer'
;
import
{
GlobalState
}
from
'ducks/rootReducer'
;
import
{
updateTableOwner
}
from
'ducks/tableMetadata/owners/reducer'
;
import
{
updateTableOwner
}
from
'ducks/tableMetadata/owners/reducer'
;
import
{
EditableSectionChildProps
}
from
'components/common/EditableSection'
;
import
{
EditableSectionChildProps
}
from
'components/common/EditableSection'
;
import
{
logClick
}
from
'ducks/utilMethods'
;
import
{
logClick
}
from
'ducks/utilMethods'
;
import
*
as
Constants
from
'./constants'
;
export
interface
DispatchFromProps
{
export
interface
DispatchFromProps
{
onUpdateList
:
(
updateArray
:
UpdateOwnerPayload
[],
onSuccess
?:
()
=>
any
,
onFailure
?:
()
=>
any
)
=>
void
;
onUpdateList
:
(
updateArray
:
UpdateOwnerPayload
[],
onSuccess
?:
()
=>
any
,
onFailure
?:
()
=>
any
)
=>
void
;
}
}
...
@@ -102,7 +102,7 @@ export class OwnerEditor extends React.Component<OwnerEditorProps, OwnerEditorSt
...
@@ -102,7 +102,7 @@ export class OwnerEditor extends React.Component<OwnerEditorProps, OwnerEditorSt
this
.
props
.
setEditMode
(
false
);
this
.
props
.
setEditMode
(
false
);
};
};
const
onFailureCallback
=
()
=>
{
const
onFailureCallback
=
()
=>
{
this
.
setState
({
errorText
:
DEFAULT_ERROR_TEXT
,
readOnly
:
true
});
this
.
setState
({
errorText
:
Constants
.
DEFAULT_ERROR_TEXT
,
readOnly
:
true
});
this
.
props
.
setEditMode
(
false
);
this
.
props
.
setEditMode
(
false
);
};
};
this
.
props
.
onUpdateList
(
updateArray
,
onSuccessCallback
,
onFailureCallback
);
this
.
props
.
onUpdateList
(
updateArray
,
onSuccessCallback
,
onFailureCallback
);
...
@@ -152,7 +152,7 @@ export class OwnerEditor extends React.Component<OwnerEditorProps, OwnerEditorSt
...
@@ -152,7 +152,7 @@ export class OwnerEditor extends React.Component<OwnerEditorProps, OwnerEditorSt
<
input
<
input
id=
'add-item-input'
id=
'add-item-input'
autoFocus=
{
true
}
autoFocus=
{
true
}
placeholder=
{
`Please enter ${AppConfig.userIdLabel}`
}
placeholder=
{
`Please enter ${AppConfig.userIdLabel
|| Constants.USERID_LABEL
}`
}
ref=
{
this
.
inputRef
}
ref=
{
this
.
inputRef
}
/>
/>
<
button
className=
"btn btn-default add-button"
type=
"submit"
aria
-
label=
"Add Item"
>
<
button
className=
"btn btn-default add-button"
type=
"submit"
aria
-
label=
"Add Item"
>
...
...
amundsen_application/static/js/config/config-types.ts
View file @
f66359f8
...
@@ -14,7 +14,7 @@ export interface AppConfig {
...
@@ -14,7 +14,7 @@ export interface AppConfig {
google
:
GoogleAnalyticsConfig
;
google
:
GoogleAnalyticsConfig
;
indexDashboards
:
IndexDashboardsConfig
;
indexDashboards
:
IndexDashboardsConfig
;
indexUsers
:
IndexUsersConfig
;
indexUsers
:
IndexUsersConfig
;
userIdLabel
:
string
;
userIdLabel
?:
string
;
/* Temporary configuration due to lacking string customization/translation support */
issueTracking
:
IssueTrackingConfig
;
issueTracking
:
IssueTrackingConfig
;
logoPath
:
string
|
null
;
logoPath
:
string
|
null
;
mailClientFeatures
:
MailClientFeaturesConfig
;
mailClientFeatures
:
MailClientFeaturesConfig
;
...
@@ -32,7 +32,7 @@ export interface AppConfigCustom {
...
@@ -32,7 +32,7 @@ export interface AppConfigCustom {
google
?:
GoogleAnalyticsConfig
;
google
?:
GoogleAnalyticsConfig
;
indexDashboards
?:
IndexDashboardsConfig
;
indexDashboards
?:
IndexDashboardsConfig
;
indexUsers
?:
IndexUsersConfig
;
indexUsers
?:
IndexUsersConfig
;
userIdLabel
:
string
;
userIdLabel
?:
string
;
/* Temporary configuration due to lacking string customization/translation support */
issueTracking
?:
IssueTrackingConfig
;
issueTracking
?:
IssueTrackingConfig
;
logoPath
?:
string
;
logoPath
?:
string
;
mailClientFeatures
?:
MailClientFeaturesConfig
;
mailClientFeatures
?:
MailClientFeaturesConfig
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment