Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { FormArray, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ElectronService } from '@minsky/core';
import { dateTimeFormats } from '@minsky/shared';
Expand Down Expand Up @@ -44,7 +44,7 @@ export class DimensionsComponent implements OnInit {
return this.form.get('dimensions') as FormArray;
}

constructor(private electronService: ElectronService) {
constructor(private electronService: ElectronService, private cdRef: ChangeDetectorRef) {
this.form = new FormGroup({ dimensions: new FormArray([]) });
}

Expand All @@ -58,6 +58,7 @@ export class DimensionsComponent implements OnInit {
this.originalDimensionNames.push(key);
this.dimensions.push(this.createDimension(key, args));
}
this.cdRef.detectChanges();
}
})();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnDestroy, OnInit } from '@angular/core';
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
import { AbstractControl, FormControl, FormGroup, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ElectronService } from '@minsky/core';
import { CppClass, unExposedTerminalCommands } from '@minsky/shared';
Expand Down Expand Up @@ -44,7 +44,7 @@ export class CliInputComponent implements OnInit, OnDestroy {
return this.form.get('args');
}

constructor(private electronService: ElectronService) {}
constructor(private electronService: ElectronService, private cdRef: ChangeDetectorRef) {}

async ngOnInit() {
this.form = new FormGroup({
Expand All @@ -68,6 +68,7 @@ export class CliInputComponent implements OnInit, OnDestroy {

this.commands = [..._commands, ...unExposedTerminalCommands];
}
this.cdRef.detectChanges();
}

async handleSubmit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class ConnectDatabaseComponent {

async ngOnInit() {
this.backends=await this.ravel.db.backends();
this.cdRef.detectChanges();
}

setDbType(event) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { AbstractControl, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
import { ElectronService } from '@minsky/core';
Expand Down Expand Up @@ -35,7 +35,8 @@ export class EditUserFunctionComponent implements OnInit {

constructor(
private electronService: ElectronService,
private route: ActivatedRoute
private route: ActivatedRoute,
private cdRef: ChangeDetectorRef
) {
this.form = new FormGroup({
name: new FormControl(''),
Expand All @@ -61,6 +62,7 @@ export class EditUserFunctionComponent implements OnInit {
this.name.setValue(this.itemName);
this.rotation.setValue(await this.udf.rotation());
this.expression.setValue(await this.udf.expression());
this.cdRef.detectChanges();
}

async handleSave() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
import { ElectronService } from '@minsky/core';
Expand All @@ -23,7 +23,8 @@ export class NewPubTabComponent implements OnInit {
editDescriptionForm: FormGroup;
constructor(
private route: ActivatedRoute,
private electronService: ElectronService
private electronService: ElectronService,
private cdRef: ChangeDetectorRef
) {}

async ngOnInit() {
Expand All @@ -36,6 +37,7 @@ export class NewPubTabComponent implements OnInit {
});
if (this.type==='rename')
this.editDescriptionForm.get('description').setValue(await this.pubTab.name());
this.cdRef.detectChanges();
}

async handleSave() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { FormArray, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ElectronService } from '@minsky/core';
import { PlotWidget } from '@minsky/shared';
Expand Down Expand Up @@ -47,7 +47,7 @@ export class PenStylesComponent implements OnInit {
return this.form.get('pens') as FormArray;
}

constructor(private electronService: ElectronService) {
constructor(private electronService: ElectronService, private cdRef: ChangeDetectorRef) {
this.form = new FormGroup({
pens: new FormArray([]),
});
Expand All @@ -64,6 +64,7 @@ export class PenStylesComponent implements OnInit {
this.palette.forEach((p) => {
this.pens.push(this.createPen(p));
});
this.cdRef.detectChanges();
})();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class RavelSelectHorizontalDimComponent implements OnInit {

async ngOnInit() {
this.dataCols=await this.ravel.db.numericalColumnNames();
this.cdRef.detectChanges();
}

clickDim(event: Event) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { ElectronService } from '@minsky/core';
import { ActivatedRoute } from '@angular/router';
import { ScaleHandler } from '../scale-handler/scale-handler.class';
Expand Down Expand Up @@ -31,7 +31,7 @@ export class SummaryComponent implements OnInit {

scale = new ScaleHandler();

constructor(private electronService: ElectronService, route: ActivatedRoute) {}
constructor(private electronService: ElectronService, route: ActivatedRoute, private cdRef: ChangeDetectorRef) {}

append(o: Object, key: string, v) {
if (o[key])
Expand Down Expand Up @@ -85,6 +85,7 @@ export class SummaryComponent implements OnInit {
// prevent wiring tab handlers from interfering with this tab
document.body.onkeydown=null;
document.body.onkeyup=null;
this.cdRef.detectChanges();
}

types(category: string): string[] {
Expand Down
Loading