Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit ea2225c

Browse files
oodamienghillert
authored andcommitted
Deployment Stream Export: update filename
Fix import Fix generated filename
1 parent 391b5e2 commit ea2225c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/app/streams/stream-deploy/stream-deploy.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {saveAs} from 'file-saver/FileSaver';
1616
import {BsModalService} from 'ngx-bootstrap';
1717
import {AppPropertiesSource, StreamDeployAppPropertiesComponent} from './app-properties/app-properties.component';
1818
import {Properties} from 'spring-flo';
19-
import moment = require('moment');
19+
import * as moment from 'moment';
2020

2121
/**
2222
* Component used to deploy stream definitions.
@@ -488,8 +488,8 @@ export class StreamDeployComponent implements OnInit, OnDestroy {
488488
free: FormGroup, file: FormGroup, config: StreamDeployConfig
489489
}) {
490490
const propertiesString = this.toRaw(value).map((a) => `${a.key}=${a.value}`).join('\n');
491-
const date = moment().format('YYYY-MM-DDTHms');
492-
const filename = `${value.config.id}.${date}.txt`;
491+
const date = moment().format('YYYY-MM-HHmmss');
492+
const filename = `${value.config.id}_${date}.txt`;
493493
const blob = new Blob([propertiesString], {type: 'text/plain'});
494494
saveAs(blob, filename);
495495
}

0 commit comments

Comments
 (0)