Skip to content

Commit

Permalink
fixed audience styling/deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickFuereder committed Feb 1, 2025
1 parent 8e84e85 commit 415ec33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Assets/js/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ LoginManager.isLoggedIn().then(async (e) => {
logo: 'https://via.placeholder.com/150',
url: 'https://example.com',
secret: '1234567890',
audiences: [],
redirects: [
{
id: '1234567890',
Expand Down Expand Up @@ -413,7 +414,7 @@ function createSSOClient(logoUrl, clientName, websiteUrl, clientId, clientSecret

const audienceInput = document.createElement('input');
audienceInput.type = 'text';
audienceInput.value = audience.audience;
audienceInput.value = audience.url;
audienceInput.disabled = true;
audienceItem.appendChild(audienceInput);

Expand Down Expand Up @@ -469,7 +470,7 @@ async function deleteAudience(clientId, audienceId) {
return;
}

document.getElementById('sso_audience_' + redirectId).remove();
document.getElementById('sso_audience_' + audienceId).remove();
}

async function deleteSSORedirect(clientId, redirectId) {
Expand Down
2 changes: 1 addition & 1 deletion profile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ <h1></h1>
</div>

<p>Audiences</p>
<div id="sso_audiences" class="ssoAudiences">
<div id="sso_audiences" class="ssoRedirects">
<div>
<input type="text">
<button id="sso_addAudience">Add</button>
Expand Down

0 comments on commit 415ec33

Please sign in to comment.