Form overhaul: Buff form

This commit is contained in:
Stefan Zermatten
2023-05-16 17:02:06 +02:00
parent b82e3d6f4c
commit baf99c65b3
2 changed files with 9 additions and 29 deletions

View File

@@ -30,7 +30,7 @@
>
<form-section
v-if="context.isLibraryForm"
name="Library Options"
name="Library"
>
<v-row
v-if="context.isLibraryForm"

View File

@@ -1,12 +1,5 @@
<template lang="html">
<div class="buff-form">
<text-field
ref="focusFirst"
label="Name"
:value="model.name"
:error-messages="errors.name"
@change="change('name', ...arguments)"
/>
<inline-computation-field
label="Description"
:model="model.description"
@@ -44,7 +37,7 @@
>
<slot name="children" />
</form-section>
<form-section name="Advanced">
<form-section name="Behavior">
<v-row dense>
<v-col
cols="12"
@@ -58,18 +51,6 @@
@change="change('hideRemoveButton', ...arguments)"
/>
</v-col>
<v-col
cols="12"
sm="6"
md="4"
>
<smart-switch
label="Don't show in log"
:value="model.silent"
:error-messages="errors.silent"
@change="change('silent', ...arguments)"
/>
</v-col>
<v-col
cols="12"
sm="6"
@@ -83,14 +64,13 @@
/>
</v-col>
</v-row>
<smart-combobox
label="Tags"
multiple
chips
deletable-chips
hint="Used to let slots find this property in a library, should otherwise be left blank"
:value="model.tags"
@change="change('tags', ...arguments)"
</form-section>
<form-section name="Log">
<smart-switch
label="Don't show in log"
:value="model.silent"
:error-messages="errors.silent"
@change="change('silent', ...arguments)"
/>
</form-section>
<slot />