mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +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);
|
||||
postLogin({
|
||||
data: data,
|
||||
showError: true,
|
||||
showError: false,
|
||||
setLoading: setLoading,
|
||||
onError: setError,
|
||||
onSuccess: newData =>
|
||||
|
|
|
@ -192,6 +192,7 @@ function RSTabs() {
|
|||
data.alias = data.alias || generateAlias(data.cst_type, schema);
|
||||
cstCreate(data, newCst => {
|
||||
toast.success(`Конституента добавлена: ${newCst.alias}`);
|
||||
setSelected([newCst.id]);
|
||||
navigateTab(activeTab, newCst.id);
|
||||
if (activeTab === RSTabID.CST_EDIT || activeTab === RSTabID.CST_LIST) {
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user