Fix instance add/remove buttons
This commit is contained in:
parent
1206393f7c
commit
c71878ef6b
2 changed files with 3 additions and 1 deletions
|
@ -689,6 +689,7 @@ export class SiteForm extends Component<SiteFormProps, SiteFormState> {
|
||||||
type="button"
|
type="button"
|
||||||
className="btn btn-sm bg-success ml-2"
|
className="btn btn-sm bg-success ml-2"
|
||||||
onClick={linkEvent(key, this.handleAddInstance)}
|
onClick={linkEvent(key, this.handleAddInstance)}
|
||||||
|
style={"width: 2rem; height: 2rem;"}
|
||||||
tabIndex={
|
tabIndex={
|
||||||
-1 /* Making this untabble because handling enter key in text input makes keyboard support for this button redundant */
|
-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}
|
id={instance}
|
||||||
type="button"
|
type="button"
|
||||||
className="btn btn-sm bg-danger"
|
className="btn btn-sm bg-danger"
|
||||||
|
style={"width: 2rem; height: 2rem;"}
|
||||||
onClick={linkEvent(
|
onClick={linkEvent(
|
||||||
{ key, instance },
|
{ key, instance },
|
||||||
this.handleRemoveInstance
|
this.handleRemoveInstance
|
||||||
|
|
|
@ -94,7 +94,7 @@ const createClientConfig = (_env, mode) => {
|
||||||
plugins: [
|
plugins: [
|
||||||
...base.plugins,
|
...base.plugins,
|
||||||
new ServiceWorkerPlugin({
|
new ServiceWorkerPlugin({
|
||||||
enableInDevelopment: true,
|
enableInDevelopment: mode !== "development",
|
||||||
workbox: {
|
workbox: {
|
||||||
modifyURLPrefix: {
|
modifyURLPrefix: {
|
||||||
"/": "/static/",
|
"/": "/static/",
|
||||||
|
|
Loading…
Reference in a new issue