|
|
@ -130,6 +130,14 @@ export class ImportActivitiesDialog implements OnDestroy { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public onImportStepChange(event: StepperSelectionEvent) { |
|
|
|
if (event.selectedIndex === ImportStep.UPLOAD_FILE) { |
|
|
|
this.importStep = ImportStep.UPLOAD_FILE; |
|
|
|
} else if (event.selectedIndex === ImportStep.SELECT_ACTIVITIES) { |
|
|
|
this.importStep = ImportStep.SELECT_ACTIVITIES; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public onLoadDividends(aStepper: MatStepper) { |
|
|
|
this.uniqueAssetForm.controls['uniqueAsset'].disable(); |
|
|
|
|
|
|
@ -160,14 +168,6 @@ export class ImportActivitiesDialog implements OnDestroy { |
|
|
|
aStepper.reset(); |
|
|
|
} |
|
|
|
|
|
|
|
public onImportStepChange(event: StepperSelectionEvent) { |
|
|
|
if (event.selectedIndex === ImportStep.UPLOAD_FILE) { |
|
|
|
this.importStep = ImportStep.UPLOAD_FILE; |
|
|
|
} else if (event.selectedIndex === ImportStep.SELECT_ACTIVITIES) { |
|
|
|
this.importStep = ImportStep.SELECT_ACTIVITIES; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public onSelectFile(aStepper: MatStepper) { |
|
|
|
const input = document.createElement('input'); |
|
|
|
input.accept = 'application/JSON, .csv'; |
|
|
|