Use 'Save' in profile renaming
Drop 'Done' label (unused).
This commit is contained in:
parent
dbc007b184
commit
fff391702d
|
@ -304,10 +304,10 @@ extension View {
|
||||||
Text(L10n.Global.Strings.save)
|
Text(L10n.Global.Strings.save)
|
||||||
}
|
}
|
||||||
|
|
||||||
func themeDoneButtonLabel() -> some View {
|
// func themeDoneButtonLabel() -> some View {
|
||||||
// themeCheckmarkImage.asSystemImage
|
//// themeCheckmarkImage.asSystemImage
|
||||||
Text(L10n.Global.Strings.ok)
|
// Text(L10n.Global.Strings.ok)
|
||||||
}
|
// }
|
||||||
|
|
||||||
func themeTextPicker<T: Hashable>(_ title: String, selection: Binding<T>, values: [T], description: @escaping (T) -> String) -> some View {
|
func themeTextPicker<T: Hashable>(_ title: String, selection: Binding<T>, values: [T], description: @escaping (T) -> String) -> some View {
|
||||||
StyledPicker(title: title, selection: selection, values: values) {
|
StyledPicker(title: title, selection: selection, values: values) {
|
||||||
|
|
|
@ -57,9 +57,7 @@ extension ProfileView {
|
||||||
.toolbar {
|
.toolbar {
|
||||||
themeCloseItem(presentationMode: presentationMode)
|
themeCloseItem(presentationMode: presentationMode)
|
||||||
ToolbarItem(placement: .primaryAction) {
|
ToolbarItem(placement: .primaryAction) {
|
||||||
Button(action: commitRenaming) {
|
Button(action: commitRenaming, label: themeSaveButtonLabel)
|
||||||
themeDoneButtonLabel()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}.alert(isPresented: $isOverwritingExistingProfile, content: alertOverwriteExistingProfile)
|
}.alert(isPresented: $isOverwritingExistingProfile, content: alertOverwriteExistingProfile)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue