This repository was archived by the owner on Jan 8, 2024. It is now read-only.
File tree 4 files changed +14
-12
lines changed
templates/workspace/projects/project
4 files changed +14
-12
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
- import Component from '@glimmer/component' ;
2
- import { inject as service } from '@ember/service' ;
3
- import ApiService from 'waypoint/services/api' ;
4
- import PollModelService from 'waypoint/services/poll-model' ;
5
1
import {
6
- Ref ,
2
+ GetJobRequest ,
3
+ GetJobStreamResponse ,
7
4
Job ,
8
5
QueueJobRequest ,
9
6
QueueJobResponse ,
10
- GetJobRequest ,
11
- GetJobStreamResponse ,
7
+ Ref ,
12
8
} from 'waypoint-pb' ;
13
- import { task } from 'ember-concurrency-decorators' ;
9
+
10
+ import ApiService from 'waypoint/services/api' ;
11
+ import Component from '@glimmer/component' ;
12
+ import PollModelService from 'waypoint/services/poll-model' ;
14
13
import { perform } from 'ember-concurrency-ts' ;
14
+ import { inject as service } from '@ember/service' ;
15
+ import { task } from 'ember-concurrency-decorators' ;
15
16
import { tracked } from '@glimmer/tracking' ;
16
17
17
- interface UpButtonArgs {
18
+ interface ActionsUpArgs {
18
19
application : Ref . Application . AsObject ;
19
20
}
20
21
21
- export default class UpButton extends Component < UpButtonArgs > {
22
+ export default class ActionsUp extends Component < ActionsUpArgs > {
22
23
@service api ! : ApiService ;
23
24
@service pollModel ! : PollModelService ;
24
25
Original file line number Diff line number Diff line change
1
+ import { Project } from 'waypoint-pb' ;
1
2
import { helper } from '@ember/component/helper' ;
2
3
3
- export function projectIsRemoteUppable ( params /*, hash*/ ) {
4
+ export function projectIsRemoteUppable ( params : Array < Project . AsObject > /*, hash*/ ) : boolean {
4
5
let project = params [ 0 ] as Project . AsObject ;
5
6
// We only want to display the Up button only in this case:
6
7
// if a project has a git datasource, and the dataSourcePoll is not enabled
Original file line number Diff line number Diff line change 22
22
</div >
23
23
<div class =" actions" >
24
24
{{ #if (project-is-remote-uppable @model.project )}}
25
- <UpButton @application ={{ @model.application }} />
25
+ <Actions::Up @application ={{ @model.application }} />
26
26
{{ else }}
27
27
{{ #if @model.releases.length }}
28
28
<LatestReleaseUrl @releases ={{ @model.releases }} ></LatestReleaseUrl >
You can’t perform that action at this time.
0 commit comments