mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: don't show add dive button without valid credentials
Given that currently we don't deal well with not having a git repository that is linked to cloud storage, don't allow people to add dives unless there are verified cloud credentials. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0fcf67ca55
commit
5d1fbbe57b
1 changed files with 4 additions and 1 deletions
|
@ -218,9 +218,12 @@ Kirigami.ScrollablePage {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
page.actions.main = page.saveAction
|
page.actions.main = page.saveAction
|
||||||
title = "Cloud credentials"
|
title = "Cloud credentials"
|
||||||
} else {
|
} else if(manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL) {
|
||||||
page.actions.main = page.addDiveAction
|
page.actions.main = page.addDiveAction
|
||||||
title = "Dive list"
|
title = "Dive list"
|
||||||
|
} else {
|
||||||
|
page.actions.main = null
|
||||||
|
title = "Dive list"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue