From 219f64b86785709bdc96663d67029e0d6c609686 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 --- .../app-form/project-repository-settings.ts | 12 ++++++++++++ ui/app/services/poll-model.ts | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/ui/app/components/app-form/project-repository-settings.ts b/ui/app/components/app-form/project-repository-settings.ts index 1166b879d7d..85cc743a2bd 100644 --- a/ui/app/components/app-form/project-repository-settings.ts +++ b/ui/app/components/app-form/project-repository-settings.ts @@ -1,3 +1,4 @@ +import Ember from 'ember'; import Component from '@glimmer/component'; import { inject as service } from '@ember/service'; import RouterService from '@ember/routing/router-service'; @@ -8,6 +9,7 @@ import { tracked } from '@glimmer/tracking'; import { action } from '@ember/object'; import { Project, Job } from 'waypoint-pb'; import parseUrl from 'parse-url'; +import { later } from '@ember/runloop'; const FORMAT = { HCL: 0, @@ -219,6 +221,16 @@ export default class AppFormProjectRepositorySettings extends Component