Skip to content

Commit b2dc515

Browse files
committed
more commends
1 parent 364bd1e commit b2dc515

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

  • client/src/components/views/seb-server/sebSettings

client/src/components/views/seb-server/sebSettings/types.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ import {
66
} from "@/models/seb-server/sebSettings";
77
import { Ref } from "vue";
88

9-
export type SEBSettingsContext = {
10-
isExam: boolean;
11-
containerId: string;
12-
readonly: boolean;
13-
};
14-
159
export type SEBValueAttributes = {
1610
title: string;
1711
value: string;
1812
};
1913

14+
// Context used for SEB Settings panel component
15+
export type SEBSettingsContext = {
16+
isExam: boolean; // indicates if the SEB Settings are for an Exam (or an ExamTemplate)
17+
containerId: string; // entity id (either examID or examTemplateID)
18+
readonly: boolean; // readonly flag
19+
};
20+
2021
// Singe SEB Setting values model encapsulates single SEB Setting values with its current ids
2122
// mapped by SEB Setting names and additional attributes also mapped to SEB Setting names.
2223
// Also provides some value accessors and a persistent function to save the value to backend
@@ -45,6 +46,7 @@ export type SEBSettingsTableModel = {
4546
saveTableRow(values: SEBSettingTableValue[]): void;
4647
};
4748

49+
// SEB Settings table model to use with SEB Settings tables.
4850
export type SettingsTable<T> = {
4951
table: Ref<T[]>;
5052
selectedRow: Ref<T | null>;

0 commit comments

Comments
 (0)