Skip to content

Commit a6ffce0

Browse files
committed
phases to ts
1 parent 3e30e00 commit a6ffce0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

clients/strider-ui/app/pods/organization/repository/-components/live-job/component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { inject as service } from '@ember/service';
33
import { action } from '@ember/object';
44
import io from 'socket.io-client';
55
import { cloneDeep } from 'lodash-es';
6-
import PHASES from 'strider-ui/utils/legacy/phases';
6+
import PHASES, { Phase } from 'strider-ui/utils/legacy/phases';
77
import SKELS from 'strider-ui/utils/legacy/skels';
88
import Live from 'strider-ui/services/live';
99

@@ -41,7 +41,7 @@ export default class LiveJob extends Component<Args> {
4141
}
4242
if (!job.phases) {
4343
job.phases = {};
44-
PHASES.forEach((phase) => {
44+
PHASES.forEach((phase: Phase) => {
4545
job.phases[phase] = cloneDeep(SKELS.phase);
4646
});
4747
job.phases[job.phase].started = new Date();

clients/strider-ui/app/utils/legacy/phases.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export type Phase = 'environment' | 'prepare' | 'test' | 'deploy' | 'cleanup';
2+
3+
export default ['environment', 'prepare', 'test', 'deploy', 'cleanup'];

0 commit comments

Comments
 (0)