From 75315e71f834fcef67ddd0367ea0bd97553de3a2 Mon Sep 17 00:00:00 2001 From: Jamie White Date: Sat, 28 Aug 2021 00:38:02 +0200 Subject: [PATCH] ui/project: force refresh after settings change This is rather inelegant but the [RouterService.refresh] method is not yet available to us. [RouterService.refresh]: https://github.com/emberjs/rfcs/pull/631 --- ui/app/components/app-form/project-repository-settings.ts | 3 +++ ui/app/services/poll-model.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ui/app/components/app-form/project-repository-settings.ts b/ui/app/components/app-form/project-repository-settings.ts index e35c504d496..9250697363a 100644 --- a/ui/app/components/app-form/project-repository-settings.ts +++ b/ui/app/components/app-form/project-repository-settings.ts @@ -4,6 +4,7 @@ import RouterService from '@ember/routing/router-service'; import { isEmpty } from '@ember/utils'; import ApiService from 'waypoint/services/api'; import FlashMessagesService from 'waypoint/services/flash-messages'; +import PollModelService from 'waypoint/services/poll-model'; import { tracked } from '@glimmer/tracking'; import { action } from '@ember/object'; import { Project } from 'waypoint-pb'; @@ -53,6 +54,7 @@ export default class AppFormProjectRepositorySettings extends Component