diff --git a/src/components/maintenance/ProfileView.svelte b/src/components/maintenance/ProfileView.svelte new file mode 100644 index 0000000..4016620 --- /dev/null +++ b/src/components/maintenance/ProfileView.svelte @@ -0,0 +1,34 @@ + + +
+ Profile: +
{profile.settings.name}
+
+
+ Tags: +
+ {#each profile.settings.tags as tagName} + {tagName} + {/each} +
+
+ + diff --git a/src/routes/settings/maintenance/[id]/+page.svelte b/src/routes/settings/maintenance/[id]/+page.svelte index 0701af1..ab38c44 100644 --- a/src/routes/settings/maintenance/[id]/+page.svelte +++ b/src/routes/settings/maintenance/[id]/+page.svelte @@ -4,6 +4,7 @@ import {page} from "$app/stores"; import {goto} from "$app/navigation"; import {activeProfileStore, maintenanceProfilesStore} from "$stores/maintenance-profiles-store.js"; + import ProfileView from "$components/maintenance/ProfileView.svelte"; const profileId = $page.params.id; /** @type {import('$lib/extension/entities/MaintenanceProfile.js').default|null} */ @@ -41,18 +42,7 @@
{#if profile} -
- Profile: -
{profile.settings.name}
-
-
- Tags: -
- {#each profile.settings.tags as tagName} - {tagName} - {/each} -
-
+ {/if}
@@ -70,18 +60,4 @@