Skip to content

Commit

Permalink
chore: fixes formating and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoldknott committed Mar 2, 2025
1 parent 5a50369 commit ac0a3ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,14 @@ export const actions: Actions = {
// console.log('=== routes - demo-resource - page.server - share function executed ===');
const data = await request.formData();
const sessionId = locals.sessionData.sessionId;
if(url.searchParams.get('action') === 'unshare') {
if (url.searchParams.get('action') === 'unshare') {
const resource_id = data.get('id');
const identity_id = url.searchParams.get('teamid');
await backendAPI.delete(sessionId, `/access/policy?resource_id=${resource_id}&identity_id=${identity_id}`);
}else{
await backendAPI.delete(
sessionId,
`/access/policy?resource_id=${resource_id}&identity_id=${identity_id}`
);
} else {
const accessPolicy = {
resource_id: data.get('id'),
identity_id: url.searchParams.get('teamid'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,18 +225,15 @@
? ' ...'
: null}
</button> -->
<div
class="dropdown-item max-w-40 content-center"
><span class="icon-[fluent--people-team-16-filled]"
<div class="dropdown-item max-w-40 content-center">
<span class="icon-[fluent--people-team-16-filled]"
></span>{team.displayName.slice(0, 8)}{team.displayName.length > 9
? ' ...'
: null}
</div>
<div class="mr-2">
<!-- {rightsIconSelection(team.id) ? "bg-success" : ""} -->
<span
class="{rightsIconSelection(team.id)} size-4"
></span>
<span class="{rightsIconSelection(team.id)} size-4"></span>
</div>
<div
class="dropdown relative inline-flex bg-base-300 [--offset:0] [--placement:left-start]"
Expand All @@ -259,7 +256,8 @@
type="submit"
onclick={() => (teamRight = 'own')}
aria-label="own"
><span class="icon-[tabler--key-filled] bg-success"></span></button
><span class="icon-[tabler--key-filled] bg-success"
></span></button
>
</li>
<li>
Expand All @@ -272,7 +270,8 @@
type="submit"
onclick={() => (teamRight = 'write')}
aria-label="write"
><span class="icon-[material-symbols--edit-outline-rounded] bg-warning"
><span
class="icon-[material-symbols--edit-outline-rounded] bg-warning"
></span>
</button>
</li>
Expand Down

0 comments on commit ac0a3ba

Please sign in to comment.