diff options
Diffstat (limited to 'client/src/app/+admin')
3 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index 30e4aa5d5..2c3b7560d 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | |||
@@ -273,11 +273,11 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
273 | 273 | ||
274 | const defaultValues = { | 274 | const defaultValues = { |
275 | transcoding: { | 275 | transcoding: { |
276 | resolutions: {} | 276 | resolutions: {} as { [id: string]: string } |
277 | }, | 277 | }, |
278 | live: { | 278 | live: { |
279 | transcoding: { | 279 | transcoding: { |
280 | resolutions: {} | 280 | resolutions: {} as { [id: string]: string } |
281 | } | 281 | } |
282 | } | 282 | } |
283 | } | 283 | } |
diff --git a/client/src/app/+admin/overview/users/user-edit/user-edit.ts b/client/src/app/+admin/overview/users/user-edit/user-edit.ts index 5d6c6a91e..9547da2d1 100644 --- a/client/src/app/+admin/overview/users/user-edit/user-edit.ts +++ b/client/src/app/+admin/overview/users/user-edit/user-edit.ts | |||
@@ -53,8 +53,8 @@ export abstract class UserEdit extends FormReactive implements OnInit { | |||
53 | this.serverService.getServerLocale() | 53 | this.serverService.getServerLocale() |
54 | .subscribe(translations => { | 54 | .subscribe(translations => { |
55 | if (authUser.role.id === UserRole.ADMINISTRATOR) { | 55 | if (authUser.role.id === UserRole.ADMINISTRATOR) { |
56 | this.roles = Object.keys(USER_ROLE_LABELS) | 56 | this.roles = Object.entries(USER_ROLE_LABELS) |
57 | .map(key => ({ value: key.toString(), label: peertubeTranslate(USER_ROLE_LABELS[key], translations) })) | 57 | .map(([ key, value ]) => ({ value: key.toString(), label: peertubeTranslate(value, translations) })) |
58 | return | 58 | return |
59 | } | 59 | } |
60 | 60 | ||
diff --git a/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.ts b/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.ts index 2fdc14d85..3fa1c56dc 100644 --- a/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.ts +++ b/client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.ts | |||
@@ -104,7 +104,7 @@ export class PluginListInstalledComponent implements OnInit { | |||
104 | } | 104 | } |
105 | 105 | ||
106 | isUninstalling (plugin: PeerTubePlugin) { | 106 | isUninstalling (plugin: PeerTubePlugin) { |
107 | return !!this.uninstall[this.getPluginKey(plugin)] | 107 | return !!this.uninstalling[this.getPluginKey(plugin)] |
108 | } | 108 | } |
109 | 109 | ||
110 | isTheme (plugin: PeerTubePlugin) { | 110 | isTheme (plugin: PeerTubePlugin) { |