diff --git a/src-ui/cypress/e2e/settings/settings.cy.ts b/src-ui/cypress/e2e/settings/settings.cy.ts index 0f46df9a4..aa59997d4 100644 --- a/src-ui/cypress/e2e/settings/settings.cy.ts +++ b/src-ui/cypress/e2e/settings/settings.cy.ts @@ -73,7 +73,7 @@ describe('settings', () => { cy.contains('a', 'Dashboard').click() cy.contains('You have unsaved changes') cy.contains('button', 'Cancel').click() - cy.contains('button', 'Save').click().wait(2000) + cy.contains('button', 'Save').click().wait('@savedViews').wait(2000) cy.contains('a', 'Dashboard').click() cy.contains('You have unsaved changes').should('not.exist') }) diff --git a/src-ui/src/app/app-routing.module.ts b/src-ui/src/app/app-routing.module.ts index c95d1ea7e..10a4ca301 100644 --- a/src-ui/src/app/app-routing.module.ts +++ b/src-ui/src/app/app-routing.module.ts @@ -166,6 +166,11 @@ const routes: Routes = [ }, }, }, + { + path: 'settings/:section', + component: SettingsComponent, + canDeactivate: [DirtyFormGuard], + }, { path: 'tasks', component: TasksComponent }, ], }, diff --git a/src-ui/src/app/components/manage/settings/settings.component.html b/src-ui/src/app/components/manage/settings/settings.component.html index 72a995fe9..36ef37704 100644 --- a/src-ui/src/app/components/manage/settings/settings.component.html +++ b/src-ui/src/app/components/manage/settings/settings.component.html @@ -227,6 +227,90 @@ +
  • + Mail + + + +

    + Mail accounts + +

    +
      + +
    • +
      +
      Name
      +
      Server
      +
      Actions
      +
      +
    • + +
    • +
      +
      +
      {{account.imap_server}}
      +
      +
      + + +
      +
      +
      +
    • + +
      No mail accounts defined.
      +
    + +

    + Mail rules + +

    +
      + +
    • +
      +
      Name
      +
      Account
      +
      Actions
      +
      +
    • + +
    • +
      +
      +
      {{(mailAccountService.getCached(rule.account) | async)?.name}}
      +
      +
      + + +
      +
      +
      +
    • + +
      No mail rules defined.
      +
    +
    + +
    +
    +
    Loading...
    +
    + +
    +
  • +
  • Mail diff --git a/src-ui/src/app/components/manage/settings/settings.component.ts b/src-ui/src/app/components/manage/settings/settings.component.ts index 917dbf4a0..dded419c7 100644 --- a/src-ui/src/app/components/manage/settings/settings.component.ts +++ b/src-ui/src/app/components/manage/settings/settings.component.ts @@ -31,7 +31,6 @@ import { ViewportScroller } from '@angular/common' import { TourService } from 'ngx-ui-tour-ng-bootstrap' import { ComponentWithPermissions } from '../../with-permissions/with-permissions.component' import { NgbModal, NgbNavChangeEvent } from '@ng-bootstrap/ng-bootstrap' -import { Results } from 'src/app/data/results' import { UserService } from 'src/app/services/rest/user.service' import { GroupService } from 'src/app/services/rest/group.service' import { PaperlessUser } from 'src/app/data/paperless-user'