Fix instance add/remove buttons

This commit is contained in:
abias 2023-06-04 22:31:51 -04:00
parent 1206393f7c
commit c71878ef6b
2 changed files with 3 additions and 1 deletions

View file

@ -689,6 +689,7 @@ export class SiteForm extends Component<SiteFormProps, SiteFormState> {
type="button"
className="btn btn-sm bg-success ml-2"
onClick={linkEvent(key, this.handleAddInstance)}
style={"width: 2rem; height: 2rem;"}
tabIndex={
-1 /* Making this untabble because handling enter key in text input makes keyboard support for this button redundant */
}
@ -710,6 +711,7 @@ export class SiteForm extends Component<SiteFormProps, SiteFormState> {
id={instance}
type="button"
className="btn btn-sm bg-danger"
style={"width: 2rem; height: 2rem;"}
onClick={linkEvent(
{ key, instance },
this.handleRemoveInstance

View file

@ -94,7 +94,7 @@ const createClientConfig = (_env, mode) => {
plugins: [
...base.plugins,
new ServiceWorkerPlugin({
enableInDevelopment: true,
enableInDevelopment: mode !== "development",
workbox: {
modifyURLPrefix: {
"/": "/static/",