-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #305 from TIBCOSoftware/app-model/extra
Style details and small features updated.
Showing
26 changed files
with
268 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/client/app/flogo.apps.details/components/container.tpl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<flogo-apps-details-application [appDetail]="appDetail" | ||
(flowSelected)="onFlowSelected($event)" | ||
(flowDeleted)="onFlowDeleted($event)" | ||
(flowAdded)="onFlowAdded($event)"></flogo-apps-details-application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 26 additions & 7 deletions
33
src/client/app/flogo.apps.flows/components/flows.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,44 @@ | ||
import { Component, Input, Output, EventEmitter } from '@angular/core'; | ||
import { TranslateService } from 'ng2-translate/ng2-translate'; | ||
|
||
import { IFlogoApplicationFlowModel as FlowModel } from './../../../common/application.model'; | ||
import {Component, Input, Output, EventEmitter, OnChanges, SimpleChanges} from '@angular/core'; | ||
import {TranslateService} from 'ng2-translate/ng2-translate'; | ||
import { FlogoModal } from '../../../common/services/modal.service'; | ||
import {IFlogoApplicationFlowModel as FlowModel} from './../../../common/application.model'; | ||
|
||
@Component({ | ||
selector: 'flogo-apps-flows', | ||
moduleId: module.id, | ||
templateUrl: 'flows.tpl.html', | ||
styleUrls: ['flows.component.css'] | ||
}) | ||
export class FlogoApplicationFlowsComponent { | ||
export class FlogoApplicationFlowsComponent implements OnChanges{ | ||
@Input() | ||
public flows: Array<FlowModel> = []; | ||
@Output() | ||
public flowSelected: EventEmitter<FlowModel> = new EventEmitter<FlowModel>(); | ||
@Output() | ||
public deleteFlow: EventEmitter<FlowModel> = new EventEmitter<FlowModel>(); | ||
|
||
constructor(public translate: TranslateService, public flogoModal: FlogoModal) { | ||
} | ||
|
||
constructor(public translate: TranslateService) { | ||
ngOnChanges(changes:SimpleChanges){ | ||
this.flows = _.sortBy(this.flows, flow => flow.name.toLowerCase()); | ||
} | ||
|
||
select(flow: FlowModel) { | ||
trackByFlowId(index: number, flow: FlowModel) { | ||
return flow ? flow.id : null; | ||
} | ||
|
||
onSelect(flow: FlowModel) { | ||
this.flowSelected.emit(flow); | ||
} | ||
|
||
onDeleteFlow(event: Event, flow: FlowModel) { | ||
event.stopPropagation(); | ||
let message = this.translate.instant('FLOWS:CONFIRM_DELETE', {flowName: flow.name}); | ||
this.flogoModal.confirmDelete(message).then((res) => { | ||
if (res) { | ||
this.deleteFlow.emit(flow); | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/client/app/flogo.flows.import/components/import-flow.tpl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
src/client/assets/svg/flogo.flows.detail.menu.hover.icon.svg
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters