Added the "open" case to the Stack enumeration for the Browse module.
This commit is contained in:
parent
64b89b488f
commit
3ec892ae93
@ -8,6 +8,7 @@
|
||||
|
||||
enum Stack {
|
||||
case browse(Folder)
|
||||
case open(Document)
|
||||
}
|
||||
|
||||
// MARK: - Computed
|
||||
@ -16,6 +17,8 @@ extension Stack {
|
||||
var tag: String {
|
||||
if case .browse(let folder) = self {
|
||||
return folder.id
|
||||
} else if case .open(let document) = self {
|
||||
return document.id
|
||||
} else {
|
||||
return .Constants.noId
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user