mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-02-22 13:18:24 +00:00
wip - the start of the push/pull buttons and methods
This commit is contained in:
parent
57ecf81f6f
commit
ce022dfce5
@ -1,5 +1,6 @@
|
||||
<div class="workflow-specs" fxLayout="column" fxLayoutGap="10px">
|
||||
<div class="buttons" fxLayout="row" fxLayoutGap="20px">
|
||||
<div class="buttons" fxLayout="row" fxLayoutGap="20px" fxLayoutAlign="space-between center">
|
||||
<div fxLayout="row" fxLayoutGap="20px">
|
||||
<div>
|
||||
<h1 style="margin-top: 16px">Workflow Specifications</h1>
|
||||
</div>
|
||||
@ -7,6 +8,11 @@
|
||||
<label><input matInput type="search" placeholder="Search Workflows" fxLayoutAlign="start" style="margin-top: 0;" class="form-control" [formControl]="searchField"></label>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div fxLayoutAlign="end center" fxLayoutGap="5px">
|
||||
<button mat-raised-button color="accent" (click)="gitPush()" >Push</button>
|
||||
<button mat-raised-button color="accent" (click)="gitPull()"> Pull</button>
|
||||
</div>
|
||||
</div>
|
||||
<mat-drawer-container class="example-container" autosize>
|
||||
<mat-drawer #drawer class="example-sidenav" mode="side" opened="true">
|
||||
<ng-container *ngIf="masterStatusSpec">
|
||||
|
@ -29,6 +29,7 @@ import { Location } from '@angular/common';
|
||||
import { environment } from '../../environments/environment.runtime';
|
||||
import { FormControl } from '@angular/forms';
|
||||
import { SettingsService } from '../settings.service';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
|
||||
export interface WorkflowSpecCategoryGroup {
|
||||
@ -370,6 +371,24 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
gitPush() {
|
||||
// get the state of the repo
|
||||
this.api.gitRepo().subscribe(data =>{
|
||||
|
||||
});
|
||||
// display to user the changed files
|
||||
|
||||
// if they accept, call gitPush and gitMerge (i think)
|
||||
}
|
||||
|
||||
gitPull() {
|
||||
// this won't have a popup or nothing i don't think
|
||||
this.api.gitRepoPull().subscribe(data => {
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private _updateWorkflowSpec(specId: string, newSpec: WorkflowSpec) {
|
||||
this.api.updateWorkflowSpecification(specId, newSpec).subscribe(_ => {
|
||||
this._loadWorkflowLibraries();
|
||||
|
Loading…
x
Reference in New Issue
Block a user