File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ index 0b4cb551..9d97f342 100644
52
52
ForEach(pluginMenuItems.filter {$0.section == .configuration}) { item in
53
53
item.view
54
54
}
55
- Submodule LoopKit 8e58b7e..fee7323 :
55
+ Submodule LoopKit 8e58b7e..b13348b :
56
56
diff --git a/LoopKit/LoopKit.xcodeproj/project.pbxproj b/LoopKit/LoopKit.xcodeproj/project.pbxproj
57
57
index bfdc9db..7dded80 100644
58
58
--- a/LoopKit/LoopKit.xcodeproj/project.pbxproj
@@ -1115,10 +1115,10 @@ index 0000000..d8d16ff
1115
1115
+ }
1116
1116
diff --git a/LoopKit/LoopKitUI/Views/Settings Editors/RenameProfileEditor.swift b/LoopKit/LoopKitUI/Views/Settings Editors/RenameProfileEditor.swift
1117
1117
new file mode 100644
1118
- index 0000000..730dbe6
1118
+ index 0000000..8fd2666
1119
1119
--- /dev/null
1120
1120
+++ b/LoopKit/LoopKitUI/Views/Settings Editors/RenameProfileEditor.swift
1121
- @@ -0,0 +1,84 @@
1121
+ @@ -0,0 +1,92 @@
1122
1122
+ //
1123
1123
+ // RenameProfileEditor.swift
1124
1124
+ // LoopKitUI
@@ -1149,6 +1149,9 @@ index 0000000..730dbe6
1149
1149
+ },
1150
1150
+ trailing: { renameButton }
1151
1151
+ )
1152
+ + .onAppear {
1153
+ + self.newProfileName = currentProfileName
1154
+ + }
1152
1155
+
1153
1156
+ TextField("Profile Name", text: $newProfileName)
1154
1157
+ .textFieldStyle(RoundedBorderTextFieldStyle())
@@ -1177,6 +1180,11 @@ index 0000000..730dbe6
1177
1180
+ Button(
1178
1181
+ action: {
1179
1182
+ withAnimation {
1183
+ + guard newProfileName != currentProfileName else {
1184
+ + self.isPresented = false
1185
+ + return
1186
+ + }
1187
+ +
1180
1188
+ if viewModel.doesProfileExist(withName: self.newProfileName) {
1181
1189
+ self.showAlert = true
1182
1190
+ } else {
You can’t perform that action at this time.
0 commit comments