Skip to content

Commit

Permalink
Add NavbarModule
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Oct 6, 2023
1 parent be0e9c0 commit 513d467
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 17 deletions.
20 changes: 3 additions & 17 deletions desktop/src/app/components/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ import { MD } from './messages/md';
import { Messages } from './messages/messages';
import { Modals } from '../services/modals';
import { Languages } from '../services/languages';
import { NavbarComponent } from './navbar/navbar.component';
import { ProjectsComponent } from './navbar/projects.component';
import { TaskbarWarningsComponent } from './navbar/warnings/taskbar-warnings.component';
import { TaskbarSyncStatusComponent } from './navbar/taskbar-sync-status.component';
import { TaskbarUpdateComponent } from './navbar/taskbar-update.component';
import { TaskbarComponent } from './navbar/taskbar.component';
import { ResourcesModule } from './resources/resources.module';
import { SettingsModule } from './settings/settings.module';
import { ViewModalModule } from './viewmodal/view-modal.module';
Expand All @@ -62,8 +56,7 @@ import { RemoteImageStore } from '../services/imagestore/remote-image-store';
import { ConfigurationIndex } from '../services/configuration/index/configuration-index';
import { ProjectModalLauncher } from '../services/project-modal-launcher';
import { ViewModalLauncher } from './viewmodal/view-modal-launcher';
import { WarningsModalComponent } from './navbar/warnings/warnings-modal.component';
import { DeleteFieldDataModalComponent } from './navbar/warnings/delete-field-data-modal.component';
import { NavbarModule } from './navbar/navbar.module';


const remote = typeof window !== 'undefined' ? window.require('@electron/remote') : undefined;
Expand Down Expand Up @@ -94,18 +87,11 @@ registerLocaleData(localeUk, 'uk');
DatastoreModule,
MatrixModule,
ConfigurationModule,
ProjectModule
ProjectModule,
NavbarModule
],
declarations: [
AppComponent,
NavbarComponent,
TaskbarComponent,
TaskbarWarningsComponent,
WarningsModalComponent,
DeleteFieldDataModalComponent,
TaskbarSyncStatusComponent,
TaskbarUpdateComponent,
ProjectsComponent,
HelpComponent,
],
providers: [
Expand Down
37 changes: 37 additions & 0 deletions desktop/src/app/components/navbar/navbar.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { NavbarComponent } from './navbar.component';
import { TaskbarComponent } from './taskbar.component';
import { TaskbarWarningsComponent } from './warnings/taskbar-warnings.component';
import { WarningsModalComponent } from './warnings/warnings-modal.component';
import { DeleteFieldDataModalComponent } from './warnings/delete-field-data-modal.component';
import { TaskbarSyncStatusComponent } from './taskbar-sync-status.component';
import { TaskbarUpdateComponent } from './taskbar-update.component';
import { ProjectsComponent } from './projects.component';
import { WidgetsModule } from '../widgets/widgets.module';


@NgModule({
imports: [
BrowserModule,
FormsModule,
NgbModule,
WidgetsModule
],
declarations: [
NavbarComponent,
TaskbarComponent,
TaskbarWarningsComponent,
WarningsModalComponent,
DeleteFieldDataModalComponent,
TaskbarSyncStatusComponent,
TaskbarUpdateComponent,
ProjectsComponent
],
exports: [
NavbarComponent
]
})
export class NavbarModule {}

0 comments on commit 513d467

Please sign in to comment.