mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-01 20:08:57 +00:00
improve button
This commit is contained in:
@@ -790,12 +790,10 @@ struct SetSimplexDomainView: View {
|
||||
}
|
||||
Section {
|
||||
if editing {
|
||||
if simplexName.isEmpty {
|
||||
Button {
|
||||
openBrowserAlert(uri: "https://github.com/simplex-chat/simplex-chat/blob/master/docs/guide/register-simplex-name.md")
|
||||
} label: {
|
||||
Text("Register a test name")
|
||||
}
|
||||
Button {
|
||||
openBrowserAlert(uri: "https://github.com/simplex-chat/simplex-chat/blob/master/docs/guide/register-simplex-name.md")
|
||||
} label: {
|
||||
Text("Register a test name")
|
||||
}
|
||||
Button {
|
||||
if let w = broadcastWarning, changed {
|
||||
|
||||
+2
-4
@@ -160,10 +160,8 @@ fun SetSimplexDomainView(
|
||||
SectionDividerSpaced()
|
||||
SectionView {
|
||||
if (editing.value) {
|
||||
if (name.value.isBlank()) {
|
||||
SectionItemView({ openBrowserAlert("https://github.com/simplex-chat/simplex-chat/blob/master/docs/guide/register-simplex-name.md", uriHandler) }) {
|
||||
Text(stringResource(MR.strings.register_test_name), color = MaterialTheme.colors.primary)
|
||||
}
|
||||
SectionItemView({ openBrowserAlert("https://github.com/simplex-chat/simplex-chat/blob/master/docs/guide/register-simplex-name.md", uriHandler) }) {
|
||||
Text(stringResource(MR.strings.register_test_name), color = MaterialTheme.colors.primary)
|
||||
}
|
||||
SectionItemView({ if (broadcastWarning != null && !unchanged) AlertManager.shared.showAlertDialog(title = broadcastWarning, confirmText = generalGetString(MR.strings.save_verb), onConfirm = { doSave(close) }) else doSave(close) }, disabled = unchanged || saving.value || !isValid) {
|
||||
Text(
|
||||
|
||||
Reference in New Issue
Block a user