Use consistent snapshot and loading labels
This commit is contained in:
@@ -19,7 +19,7 @@ enum ChangeMode {
|
||||
private let emptyText: [ChangeMode: String] = [
|
||||
.main: "No changes from the default branch.",
|
||||
.turn: "No changes this turn.",
|
||||
.step: "This step changed nothing.",
|
||||
.step: "This snapshot changed nothing.",
|
||||
]
|
||||
|
||||
struct ChangesMemory {
|
||||
@@ -321,7 +321,7 @@ private struct ChangesHead: View {
|
||||
RangeTabButton(label: "Since default branch", active: model.pinRange == .main) {
|
||||
model.setPinRange(.main)
|
||||
}
|
||||
RangeTabButton(label: "This step", active: model.pinRange == .step) {
|
||||
RangeTabButton(label: "This snapshot", active: model.pinRange == .step) {
|
||||
model.setPinRange(.step)
|
||||
}
|
||||
RangeTabButton(label: "Live", active: false, help: "Back to the live worktree") {
|
||||
@@ -472,7 +472,7 @@ private struct FileRow: View {
|
||||
Group {
|
||||
switch model.diffs[file.path] {
|
||||
case .none:
|
||||
Text("loading…").foregroundStyle(Palette.muted).padding(.horizontal, 10).padding(.vertical, 6)
|
||||
Text("Loading…").foregroundStyle(Palette.muted).padding(.horizontal, 10).padding(.vertical, 6)
|
||||
case .failure(let e):
|
||||
Text(e.message).foregroundStyle(Palette.danger).padding(.horizontal, 10).padding(.vertical, 6)
|
||||
case .success(let patch):
|
||||
|
||||
Reference in New Issue
Block a user