mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-03-14 20:02:33 +00:00
add warning to logout
This commit is contained in:
parent
7d2fc5a7b0
commit
c5afade0cf
@ -1068,6 +1068,11 @@ function App() {
|
||||
message:
|
||||
"Your settings have changed. If you logout you will lose your changes. Click on the save button in the header to keep your changed settings.",
|
||||
});
|
||||
} else {
|
||||
await showUnsavedChanges({
|
||||
message:
|
||||
"Are you sure you would like to logout?",
|
||||
});
|
||||
}
|
||||
window
|
||||
.sendMessage("logout", {})
|
||||
@ -2933,10 +2938,10 @@ await showInfo({
|
||||
</DialogContentText>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<Button variant="contained" onClick={onCancelUnsavedChanges}>
|
||||
<Button size="small" variant="contained" onClick={onCancelUnsavedChanges}>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button variant="contained" onClick={onOkUnsavedChanges} autoFocus>
|
||||
<Button size="small" variant="contained" onClick={onOkUnsavedChanges} autoFocus>
|
||||
Continue to Logout
|
||||
</Button>
|
||||
</DialogActions>
|
||||
|
@ -199,7 +199,7 @@ export const AdminSpaceInner = ({
|
||||
{` by ${groupSecretKeyPublishDetails?.name}`}
|
||||
</Typography>
|
||||
)}
|
||||
<Button disabled={isFetchingGroupSecretKey} onClick={()=> setIsForceShowCreationKeyPopup(true) variant="contained">
|
||||
<Button disabled={isFetchingGroupSecretKey} onClick={()=> setIsForceShowCreationKeyPopup(true)} variant="contained">
|
||||
Publish group secret key
|
||||
</Button>
|
||||
<Spacer height="20px" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user