Update icons, hide page title
This commit is contained in:
@@ -34,6 +34,8 @@ final class Content: ObservableObject {
|
||||
@Published
|
||||
private(set) var isGeneratingWebsite = false
|
||||
|
||||
private(set) var shouldGenerateWebsite = false
|
||||
|
||||
init(settings: Settings,
|
||||
posts: [Post],
|
||||
pages: [Page],
|
||||
@@ -84,6 +86,10 @@ final class Content: ObservableObject {
|
||||
self.isGeneratingWebsite = isGenerating
|
||||
}
|
||||
|
||||
func set(shouldGenerate: Bool) {
|
||||
self.shouldGenerateWebsite = shouldGenerate
|
||||
}
|
||||
|
||||
func add(_ file: FileResource) {
|
||||
// TODO: Insert at correct index?
|
||||
files.insert(file, at: 0)
|
||||
|
Reference in New Issue
Block a user