Skip to content

Commit

Permalink
compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoAnderson committed Dec 19, 2023
1 parent 9357de3 commit dd52d6e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnInit, Inject } from '@angular/core';
import { Router } from '@angular/router';
import { HttpClient } from '@angular/common/http';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { ConfigService, SessionExpirationWarning } from '@gsrs-core/config';

@Component({
Expand All @@ -15,7 +15,7 @@ export class SessionExpirationDialogComponent implements OnInit {
timeRemainingSeconds: number;
dialogTitle: string;
dialogMessage: string;
private updateDialogInterval: number;
private updateDialogInterval: any;

constructor(
public dialogRef: MatDialogRef<SessionExpirationDialogComponent>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Router, Event as NavigationEvent, NavigationStart } from '@angular/router';
import { Component, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material';
import { MatDialog} from '@angular/material/dialog';

import { OverlayContainer } from '@angular/cdk/overlay';
import { HttpClient } from '@angular/common/http';
import { ConfigService, SessionExpirationWarning } from '@gsrs-core/config';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { MatDialogRef} from '@angular/material/dialog';
import { ConfigService, ExternalSiteWarning } from '@gsrs-core/config';

@Component({
Expand Down
3 changes: 1 addition & 2 deletions src/app/core/name-resolver/name-resolver.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { SubstanceService } from '../substance/substance.service';
import { StructureService } from '../structure/structure.service';
import {SafeUrl} from '@angular/platform-browser';
import { ConfigService, ExternalSiteWarning } from '@gsrs-core/config';
import { THIS_EXPR } from '@angular/compiler/src/output/output_ast';
import { MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
import { OverlayContainer } from '@angular/cdk/overlay';
import { ExternalSiteWarningDialogComponent } from './external-site-warning-dialog/external-site-warning-dialog.component';

Expand Down
2 changes: 1 addition & 1 deletion src/app/core/name-resolver/name-resolver.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NameResolverComponent } from './name-resolver.component';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { MatInputModule } from '@angular/material/input';
import { MatButtonModule } from '@angular/material/button';
import { MatCheckboxModule } from '@angular/material';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatIconModule } from '@angular/material/icon';
import { RouterModule } from '@angular/router';
import { LoadingModule } from '../loading/loading.module';
Expand Down
4 changes: 2 additions & 2 deletions src/app/core/substance-form/substance-form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ getDrafts() {
if (!this.id) {
this.id = response.uuid;
}
this.openSuccessDialog('staging');
this.openSuccessDialog({ type: 'staging' });
})
}

Expand Down Expand Up @@ -1153,7 +1153,7 @@ getDrafts() {
const dialogRef = this.dialog.open(SubmitSuccessDialogComponent, {
data: {
type: type,
fileUrl: fileUrl
fileUrl: fileUrl ? fileUrl : null
},
disableClose: true
});
Expand Down
2 changes: 0 additions & 2 deletions src/app/core/substance-form/substance-form.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,6 @@ export class SubstanceFormService implements OnDestroy {
lastEdited: this.privateSubstance.lastEdited,
lastEditedBy: this.privateSubstance.lastEditedBy,
_name: this.privateSubstance._name,
_name_html: this.privateSubstance._name_html,

tags: this.privateSubstance.tags
};
if (this.privateSubstance.status) {
Expand Down

0 comments on commit dd52d6e

Please sign in to comment.