mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
Minor UI improvements
This commit is contained in:
parent
a5f3539798
commit
6ae6451236
|
@ -65,7 +65,7 @@ export const AuthState = ({ children }: AuthStateProps) => {
|
||||||
setError(undefined);
|
setError(undefined);
|
||||||
postLogin({
|
postLogin({
|
||||||
data: data,
|
data: data,
|
||||||
showError: true,
|
showError: false,
|
||||||
setLoading: setLoading,
|
setLoading: setLoading,
|
||||||
onError: setError,
|
onError: setError,
|
||||||
onSuccess: newData =>
|
onSuccess: newData =>
|
||||||
|
|
|
@ -192,6 +192,7 @@ function RSTabs() {
|
||||||
data.alias = data.alias || generateAlias(data.cst_type, schema);
|
data.alias = data.alias || generateAlias(data.cst_type, schema);
|
||||||
cstCreate(data, newCst => {
|
cstCreate(data, newCst => {
|
||||||
toast.success(`Конституента добавлена: ${newCst.alias}`);
|
toast.success(`Конституента добавлена: ${newCst.alias}`);
|
||||||
|
setSelected([newCst.id]);
|
||||||
navigateTab(activeTab, newCst.id);
|
navigateTab(activeTab, newCst.id);
|
||||||
if (activeTab === RSTabID.CST_EDIT || activeTab === RSTabID.CST_LIST) {
|
if (activeTab === RSTabID.CST_EDIT || activeTab === RSTabID.CST_LIST) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user