Skip to content

Commit c0a4308

Browse files
committed
IOS-5255 Add toast notifications for pin/unpin actions
1 parent e336641 commit c0a4308

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Anytype/Sources/PresentationLayer/TextEditor/EditorPage/Views/Settings/ObjectActions/ObjectActionsViewModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ final class ObjectActionsViewModel {
115115
position: first.map { .above(widgetId: $0.id) } ?? .end
116116
)
117117
}
118+
toastData = ToastBarData(pinned ? Loc.unpinned : Loc.pinned)
118119
dismiss.toggle()
119120
}
120121

Modules/Loc/Sources/Loc/Generated/Strings.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,7 @@ public enum Loc {
635635
public static let unlocked = Loc.tr("UI", "Unlocked", fallback: "Unlocked")
636636
public static let unmute = Loc.tr("UI", "Unmute", fallback: "Unmute")
637637
public static let unpin = Loc.tr("UI", "Unpin", fallback: "Unpin")
638+
public static let unpinned = Loc.tr("UI", "Unpinned", fallback: "Unpinned")
638639
public static let unpublish = Loc.tr("UI", "Unpublish", fallback: "Unpublish")
639640
public static let unread = Loc.tr("UI", "Unread", fallback: "Unread")
640641
public static let unselectAll = Loc.tr("UI", "Unselect all", fallback: "Unselect all")

Modules/Loc/Sources/Loc/Resources/UI.xcstrings

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69146,6 +69146,17 @@
6914669146
}
6914769147
}
6914869148
},
69149+
"Unpinned" : {
69150+
"extractionState" : "manual",
69151+
"localizations" : {
69152+
"en" : {
69153+
"stringUnit" : {
69154+
"state" : "translated",
69155+
"value" : "Unpinned"
69156+
}
69157+
}
69158+
}
69159+
},
6914969160
"Preferences" : {
6915069161
"extractionState" : "manual",
6915169162
"localizations" : {

0 commit comments

Comments
 (0)