-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add LocationFilterToolbarContent to summary toolbar (#970)
The summary will have this if the category is location filterable.
- Loading branch information
Showing
6 changed files
with
21 additions
and
27 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
Sources/Site/Music/UI/ArchiveCategory+LocationFilterable.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// ArchiveCategory+LocationFilterable.swift | ||
// site | ||
// | ||
// Created by Greg Bolsinga on 10/11/24. | ||
// | ||
|
||
extension ArchiveCategory { | ||
var isLocationFilterable: Bool { | ||
switch self { | ||
case .today, .stats: | ||
false | ||
case .shows, .venues, .artists: | ||
true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters