sources/plex: add API for user connections

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-08-17 12:56:38 +02:00
parent 065121d280
commit 84c4547005
7 changed files with 541 additions and 207 deletions

View File

@ -21,7 +21,7 @@ export class SourceSettingsOAuth extends BaseUserSettings {
renderInner(): TemplateResult {
return html`${until(
new SourcesApi(DEFAULT_CONFIG)
.sourcesOauthUserConnectionsList({
.sourcesUserConnectionsOauthList({
sourceSlug: this.objectId,
})
.then((connection) => {
@ -32,7 +32,7 @@ export class SourceSettingsOAuth extends BaseUserSettings {
@click=${() => {
return new SourcesApi(
DEFAULT_CONFIG,
).sourcesOauthUserConnectionsDestroy({
).sourcesUserConnectionsOauthDestroy({
id: connection.results[0].pk || 0,
});
}}