diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-14 14:22:33 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-14 14:22:33 +0100 |
commit | 2f061e065ab43cc0b73595b619639a92952aeeba (patch) | |
tree | bff578e05f41d0272e82f44d03570738947d6539 /client/src/app/+admin | |
parent | f713f36bdf6f696ab0fe8a309035a09e864a48ca (diff) | |
parent | 2198bb5a1981177b04dd94b2b1b6a90c5d7a5c25 (diff) | |
download | PeerTube-2f061e065ab43cc0b73595b619639a92952aeeba.tar.gz PeerTube-2f061e065ab43cc0b73595b619639a92952aeeba.tar.zst PeerTube-2f061e065ab43cc0b73595b619639a92952aeeba.zip |
Merge branch 'release/4.3.0' into develop
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/system/jobs/jobs.component.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/+admin/system/jobs/jobs.component.ts b/client/src/app/+admin/system/jobs/jobs.component.ts index d5da1b743..b8f3c3a68 100644 --- a/client/src/app/+admin/system/jobs/jobs.component.ts +++ b/client/src/app/+admin/system/jobs/jobs.component.ts | |||
@@ -2,6 +2,7 @@ import { SortMeta } from 'primeng/api' | |||
2 | import { Component, OnInit } from '@angular/core' | 2 | import { Component, OnInit } from '@angular/core' |
3 | import { Notifier, RestPagination, RestTable } from '@app/core' | 3 | import { Notifier, RestPagination, RestTable } from '@app/core' |
4 | import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' | 4 | import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' |
5 | import { escapeHTML } from '@shared/core-utils/renderer' | ||
5 | import { Job, JobState, JobType } from '@shared/models' | 6 | import { Job, JobState, JobType } from '@shared/models' |
6 | import { JobStateClient } from '../../../../types/job-state-client.type' | 7 | import { JobStateClient } from '../../../../types/job-state-client.type' |
7 | import { JobTypeClient } from '../../../../types/job-type-client.type' | 8 | import { JobTypeClient } from '../../../../types/job-type-client.type' |
@@ -142,7 +143,10 @@ export class JobsComponent extends RestTable implements OnInit { | |||
142 | 143 | ||
143 | private loadJobStateAndType () { | 144 | private loadJobStateAndType () { |
144 | const state = peertubeLocalStorage.getItem(JobsComponent.LOCAL_STORAGE_STATE) | 145 | const state = peertubeLocalStorage.getItem(JobsComponent.LOCAL_STORAGE_STATE) |
145 | if (state) this.jobState = state as JobState | 146 | |
147 | // FIXME: We use <ng-option> that doesn't escape HTML | ||
148 | // https://github.com/ng-select/ng-select/issues/1363 | ||
149 | if (state) this.jobState = escapeHTML(state) as JobState | ||
146 | 150 | ||
147 | const type = peertubeLocalStorage.getItem(JobsComponent.LOCAL_STORAGE_TYPE) | 151 | const type = peertubeLocalStorage.getItem(JobsComponent.LOCAL_STORAGE_TYPE) |
148 | if (type) this.jobType = type as JobType | 152 | if (type) this.jobType = type as JobType |