Compare commits
4 Commits
1004ad4895
...
5b55bd267b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b55bd267b | ||
|
|
0d2e7585b8 | ||
|
|
72cdae3d1c | ||
|
|
96718d173c |
@ -229,9 +229,10 @@ export const ASSET_ASSIGN_ACTIVITY_ID = 'd18815a4-4e74-480d-a943-67dce894412f'
|
|||||||
/** Fields the user fills in. */
|
/** Fields the user fills in. */
|
||||||
export const ASSET_ASSIGN_FIELDS = [
|
export const ASSET_ASSIGN_FIELDS = [
|
||||||
{ id: 'field_1', label: 'Assigned date', type: 'date' },
|
{ id: 'field_1', label: 'Assigned date', type: 'date' },
|
||||||
// The builder has no options for Assigned by, so the form offers the active
|
// Assigned by (field_5) is left out of the form on purpose: it is a select in
|
||||||
// employees' names (`employeeOptions`, filled in by the dialog).
|
// the builder and the runtime rejects any value not in its options ("Assigned
|
||||||
{ id: 'field_5', label: 'Assigned by', type: 'select', options: [], employeeOptions: true },
|
// by must be one of the listed options"), so employee names can't go there.
|
||||||
|
// Add it back, with `employeeOptions: true`, once the builder field is text.
|
||||||
{ id: 'field_6', label: 'Remarks', type: 'longtext' },
|
{ id: 'field_6', label: 'Remarks', type: 'longtext' },
|
||||||
{
|
{
|
||||||
id: 'field_21',
|
id: 'field_21',
|
||||||
|
|||||||
@ -4,6 +4,9 @@ import react from "@vitejs/plugin-react";
|
|||||||
export default defineConfig(({ command }) => ({
|
export default defineConfig(({ command }) => ({
|
||||||
// Relative base: frontgen places one artifact at any mount path and injects <base href>.
|
// Relative base: frontgen places one artifact at any mount path and injects <base href>.
|
||||||
base: "./",
|
base: "./",
|
||||||
|
// Not "assets": the app has an /assets route, and nginx answers 403 for a real
|
||||||
|
// folder with no index.html, so reloading /asset-management/assets/ broke.
|
||||||
|
build: { assetsDir: "static" },
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
port: 5173,
|
port: 5173,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user