field create
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
<script>
|
||||
import ChannelLayout from "../../layouts/ChannelLayout.svelte";
|
||||
import { post } from "../../modules/remote";
|
||||
import { getApp } from "../../app";
|
||||
let { channel, user, data } = $props();
|
||||
let newSchemaName = $state("");
|
||||
let newSchemaAlias = $state("");
|
||||
const app = getApp();
|
||||
|
||||
function handleSchemaCreate(e) {
|
||||
e.preventDefault();
|
||||
@@ -15,7 +17,7 @@
|
||||
},
|
||||
(data, err) => {
|
||||
if (err.isEmpty()) {
|
||||
window.location.reload();
|
||||
Turbo.visit(window.location.href);
|
||||
}
|
||||
},
|
||||
);
|
||||
@@ -79,8 +81,9 @@
|
||||
<ul>
|
||||
<li>
|
||||
<a
|
||||
href={`/fields/create?schema=${schema.id}&type=text`}
|
||||
>Text</a
|
||||
href={app.url(
|
||||
`fields/create?schema=${schema.id}&type=text`,
|
||||
)}>Text</a
|
||||
>
|
||||
</li>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user