fix: validation of allowing teachers create compliance courses without setting deadline (#778)
* Fixed Validation of allowing teachers create compliance courses without setting deadline * greptile highlightCertificateSettings decraration suggestion * greptile multiple error bar showing fix suggestion * organization race condition * Delete screenshots/Screenshot 2026-07-22 at 11.52.00 AM.png * deleted unwanted files * code review fixes * Changed AttentionHightlight component to work with just one parameter created fixed Route Enums, Paths and Sections for * Kebab-case naming fix * Changes for code comments --------- Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
co-authored by
Rotimi Best
parent
05936e788d
commit
60056a6236
+12
-1
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/state';
|
||||
import * as UnderlineTabs from '@cio/ui/custom/underline-tabs';
|
||||
import { t } from '$lib/utils/functions/translations';
|
||||
|
||||
@@ -12,7 +13,17 @@
|
||||
activeTab?: string;
|
||||
};
|
||||
|
||||
let { errors, activeTab = $bindable('design') }: Props = $props();
|
||||
let { errors }: Props = $props();
|
||||
|
||||
let activeTab = $state('design');
|
||||
|
||||
// Initialize activeTab from URL parameter if present
|
||||
$effect(() => {
|
||||
const tabParam = page.url.searchParams.get('tab');
|
||||
if (tabParam && (tabParam === 'design' || tabParam === 'settings')) {
|
||||
activeTab = tabParam;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<UpgradeBanner>{$t('upgrade.certificate')}</UpgradeBanner>
|
||||
|
||||
Reference in New Issue
Block a user