Skip to content

Commit 0f5301d

Browse files
Merge pull request #1040 from ibi-group/gtfs+-save-complete
Add modal to indicate a successful save in GTFS+ editor
2 parents 5c5b24f + 6a05ef1 commit 0f5301d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/gtfsplus/components/GtfsPlusEditor.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ export default class GtfsPlusEditor extends Component<Props> {
9595
zip.generateAsync({type: 'blob'})
9696
.then(content => uploadGtfsPlusFeed(feedVersionId, content))
9797
.then(() => downloadGtfsPlusFeed(feedVersionId))
98+
.then(() => {
99+
if (this.refs.page && typeof this.refs.page.showInfoModal === 'function') {
100+
this.refs.page.showInfoModal({
101+
title: 'GTFS+ Save Complete',
102+
body: (
103+
<div>
104+
<p>Your GTFS+ changes have been saved and revalidated.</p>
105+
<strong>Reminder:</strong> To make GTFS+ data available, click <b>Publish new version</b> on the feed version page.
106+
</div>
107+
)
108+
})
109+
}
110+
})
98111
}
99112

100113
_getGtfsEntity = (type: string, id: string) => this.props.gtfsEntityLookup[`${type}_${id}`]

0 commit comments

Comments
 (0)