Add cancel/reset buttons for thumbnail edit

ElementalAlchemist 2 weeks ago
parent 87e8333d05
commit 6608555a8b

@ -334,6 +334,7 @@ const ThumbnailManager: Component = () => {
</div> </div>
<div> <div>
<button type="submit">Submit</button> <button type="submit">Submit</button>
<button type="button" onClick={(event) => setEditing(false)}>Cancel</button>
<ul class={styles.templateUpdateErrors}> <ul class={styles.templateUpdateErrors}>
<For each={formErrors()}> <For each={formErrors()}>
{(error: string, index: Accessor<number>) => <li>{error}</li>} {(error: string, index: Accessor<number>) => <li>{error}</li>}
@ -466,6 +467,7 @@ const ThumbnailManager: Component = () => {
</span> </span>
</div> </div>
<button type="submit">Add Template</button> <button type="submit">Add Template</button>
<button type="reset">Reset</button>
</form> </form>
<GoogleSignIn /> <GoogleSignIn />
</> </>

Loading…
Cancel
Save