Skip to content

Commit

Permalink
Update per code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
srpiatt committed Apr 18, 2024
1 parent 22ad3ff commit c6db2c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 41 deletions.
9 changes: 1 addition & 8 deletions src/routes/admin/authorization/privilege/new/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,13 @@
import PrivilegeForm from '$lib/components/admin/authorization/PrivilegeForm.svelte';
import Content from '$lib/components/Content.svelte';
import PrivilegesStore from '$lib/stores/Privileges';
import ApplicationStore from '$lib/stores/Application';
const { loadPrivileges } = PrivilegesStore;
const { applicationList, loadApplications } = ApplicationStore;
async function load() {
await loadPrivileges();
await loadApplications();
}
</script>

<Content title="New Privilege">
{#await load()}
{#await loadApplications()}
<h3 class="text-left">Loading</h3>
<ProgressBar animIndeterminate="anim-progress-bar" />
{:then}
Expand Down
33 changes: 0 additions & 33 deletions tests/mock-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,36 +50,3 @@ export const searchResults = {
},
},
};

export const privileges = [
{
uuid: 'p-abcd',
name: 'PRIV_ONE',
description: 'a privliege',
queryScope: '[]',
application: {
uuid: 'a-abcd',
name: 'ApplicationA',
description: 'Enabled application',
enable: true,
},
},
{
uuid: 'p-bcde',
name: 'PRIV_TWO',
description: 'privilege without application',
queryScope: '[]',
},
{
uuid: 'p-cdef',
name: 'PRIV_THREE',
description: 'a privilege',
queryScope: '[]',
application: {
uuid: 'p-cdef',
name: 'ApplicationB',
description: 'Disabled application',
enable: false,
},
},
];

0 comments on commit c6db2c9

Please sign in to comment.