diff --git a/src/app/editor/layout/layout.module.ts b/src/app/editor/layout/layout.module.ts index bde9560..21d8d99 100644 --- a/src/app/editor/layout/layout.module.ts +++ b/src/app/editor/layout/layout.module.ts @@ -11,6 +11,7 @@ import { ControlsConsoleModule } from '../controls-console/controls-console.modu import { ControlsModule } from '../controls/controls.module'; import { NewProjectModule } from '../new-project/new-project.module'; import { ProjectModule } from '../project/project.module'; +import { ReportIssueModule } from '../report-issue/report-issue.module'; import { SchemaModule } from '../schema/schema.module'; import { SharedModule } from '../shared/shared.module'; import { MenuBarModule } from '../ui/menu-bar/menu-bar.module'; @@ -39,6 +40,7 @@ import { WorkspaceComponent } from './workspace/workspace.component'; MenuBarModule, NewProjectModule, ProjectModule, + ReportIssueModule, SchemaModule, SharedModule, StoreModule.forFeature('layout', layoutReducer), diff --git a/src/app/editor/layout/topnav/topnav.component.ts b/src/app/editor/layout/topnav/topnav.component.ts index e7737a6..55ffffc 100644 --- a/src/app/editor/layout/topnav/topnav.component.ts +++ b/src/app/editor/layout/topnav/topnav.component.ts @@ -5,7 +5,6 @@ import { map, take } from 'rxjs/operators'; import { AboutModalComponent } from '../../about/about-modal/about-modal.component'; import { RequireAuth } from '../../account/account.actions'; -import { ReportGenericError } from '../../bedrock.actions'; import * as fromRoot from '../../bedrock.reducers'; import { LocateWebpackConfig, RestartWebpack } from '../../controls/controls.actions'; import { NewProjectDialogComponent } from '../../new-project/new-project-dialog/new-project-dialog.component'; @@ -13,6 +12,7 @@ import { CloseProject, RequireLink, StartOpenProject } from '../../project/proje import { RemoteConnectionDialogComponent } from '../../remote-connect/dialog/dialog.component'; import { RemoteState, SetRemoteState } from '../../remote-connect/remote-connect.actions'; import { isRemoteConnected } from '../../remote-connect/remote-connect.reducer'; +import { ReportIssueModalComponent } from '../../report-issue/report-issue-modal/report-issue-modal.component'; import { OpenSnapshotDialogComponent } from '../../schema/open-snapshot-dialog/open-snapshot-dialog.component'; import { SaveSnapshotDialogComponent } from '../../schema/save-snapshot-dialog/save-snapshot-dialog.component'; import { CopyWorldSchema, QuickUploadWorldSchema } from '../../schema/schema.actions'; @@ -106,7 +106,7 @@ export class TopNavComponent { * Pops a window to submit an issue to the project. */ public openIssue() { - this.store.dispatch(new ReportGenericError('My Error Report', 'Enter your details here')); + this.dialog.open(ReportIssueModalComponent); } /** diff --git a/src/app/editor/report-issue/report-issue-modal/report-issue-modal.component.html b/src/app/editor/report-issue/report-issue-modal/report-issue-modal.component.html new file mode 100644 index 0000000..f0e7a37 --- /dev/null +++ b/src/app/editor/report-issue/report-issue-modal/report-issue-modal.component.html @@ -0,0 +1,13 @@ +