Makes mod editing only send changed data (#286)

* Add getDifferences lib

* Only send mod diff to backend for changes

* Disable fields when lacking permissions
This commit is contained in:
venashial
2021-10-02 16:47:59 -07:00
committed by GitHub
parent f4636fdca2
commit c518f373df
6 changed files with 207 additions and 70 deletions

View File

@@ -364,7 +364,7 @@
}
}
}
.tab:last-child {
margin-bottom: 0;
}
@@ -404,6 +404,12 @@
&:active {
background-color: var(--color-button-bg-active);
}
&:disabled,
&[disabled] {
opacity: 0.6;
pointer-events: none;
cursor: not-allowed;
}
}
.transparent-button {

View File

@@ -234,7 +234,7 @@ textarea {
border: 2px solid transparent;
&:focus,
&:hover {
&:hover:not([disabled]) {
background: var(--color-button-bg-hover);
color: var(--color-text);
outline: none;
@@ -252,6 +252,13 @@ textarea {
&::placeholder {
color: var(--color-color-text);
}
&:disabled,
&[disabled] {
opacity: 0.6;
pointer-events: none;
cursor: not-allowed;
}
}
.ea-content {