Disable a lot of validation and route changes for now while we work to add in pages
@@ -41,14 +41,22 @@ export class IntegrationsEditPage implements OnInit, OnDestroy {
}
showNext() {
+ /*
if (this.getCurrentChild() === ('action-select' || 'connection-select')) {
return false;
}
return !(this.getCurrentChild() === ('action-configure') && this.position === 1);
+ */
+ // TODO let's just always show this for now
+ return true;
}
showBack() {
+ /*
return this.getCurrentChild() === ('action-configure' );
+ */
+ // TODO let's just always show this for now
+ return true;
}
goBack() {
@@ -56,14 +64,14 @@ export class IntegrationsEditPage implements OnInit, OnDestroy {
switch (child) {
case 'action-select':
case 'connection-select':
- // uh...
+ // TODO uh...
break;
case 'action-configure':
// TODO hard-coding this to just go to the previous action
this.router.navigate([ 'action-select', this.position ], { relativeTo: this.route });
break;
default:
- // who knows...
+ // TODO who knows...
break;
}
@@ -141,6 +149,7 @@ export class IntegrationsEditPage implements OnInit, OnDestroy {
const child = this.getCurrentChild();
switch (event.kind) {
case 'integration-updated':
+ if (!child) {
// no start connection set
if (!this.currentFlow.getStartConnection()) {
this.router.navigate(['connection-select', 0], { relativeTo: this.route });
@@ -153,6 +162,7 @@ export class IntegrationsEditPage implements OnInit, OnDestroy {
}
// prompt the user what next?
this.router.navigate(['save-or-add-step', this.currentFlow.getMiddlePosition()], { relativeTo: this.route });
+ }
break;
case 'integration-no-actions':
if (child !== 'action-select') {
@@ -160,15 +170,21 @@ export class IntegrationsEditPage implements OnInit, OnDestroy {
}
break;
case 'integration-no-connections':
+ /*
+ TODO disabling this for now so we can easily work on individual steps
if (child !== 'connection-select') {
this.router.navigate([ 'connection-select', 0 ], { relativeTo: this.route });
}
+ */
break;
case 'integration-action-select':
case 'integration-connection-select':
+ /*
+ TODO we'll allow the next button all the time for now
if (!this.currentFlow.integration.steps[this.position]) {
this._canContinue = false;
}
+ */;
break;
case 'integration-selected-action':
this.position = event[ 'position' ];
