@@ -65,7 +65,7 @@ export default class FeedSourceViewer extends Component {
65
65
}
66
66
}
67
67
confirmDeleteFeedSource ( feedSource ) {
68
- this . refs [ ' page' ] . showConfirmModal ( {
68
+ this . refs . page . showConfirmModal ( {
69
69
title : 'Delete Feed Source?' ,
70
70
body : 'Are you sure you want to delete this feed source? This action cannot be undone and all feed versions will be deleted.' ,
71
71
onConfirm : ( ) => {
@@ -126,6 +126,7 @@ export default class FeedSourceViewer extends Component {
126
126
} = this . props
127
127
const messages = getComponentMessages ( 'FeedSourceViewer' )
128
128
const disabled = ! user . permissions . hasFeedPermission ( project . organizationId , project . id , fs . id , 'manage-feed' )
129
+ const isProjectAdmin = user . permissions . isProjectAdmin ( project . id , project . organizationId )
129
130
// const editGtfsDisabled = !user.permissions.hasFeedPermission(project.organizationId, project.id, fs.id, 'edit-gtfs')
130
131
const autoFetchFeed = fs . retrievalMethod === 'FETCHED_AUTOMATICALLY'
131
132
const resourceType = activeComponent === 'settings' && activeSubComponent && activeSubComponent . toUpperCase ( )
@@ -218,6 +219,7 @@ export default class FeedSourceViewer extends Component {
218
219
< ExternalPropertiesTable
219
220
resourceType = { resourceType }
220
221
editingIsDisabled = { disabled }
222
+ isProjectAdmin = { isProjectAdmin }
221
223
resourceProps = { fs . externalProperties [ resourceType ] }
222
224
externalPropertyChanged = { ( name , value ) => {
223
225
externalPropertyChanged ( fs , resourceType , name , value )
0 commit comments