mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Rename "draft" status to "local"
This commit is contained in:
parent
0b6b0c395d
commit
3c26829407
@ -2,7 +2,7 @@ import Foundation
|
||||
import WriteFreely
|
||||
|
||||
enum PostStatus {
|
||||
case draft
|
||||
case local
|
||||
case edited
|
||||
case published
|
||||
}
|
||||
@ -18,7 +18,7 @@ class Post: Identifiable, ObservableObject {
|
||||
title: String = "Title",
|
||||
body: String = "Write your post here...",
|
||||
createdDate: Date = Date(),
|
||||
status: PostStatus = .draft,
|
||||
status: PostStatus = .local,
|
||||
collection: PostCollection = draftsCollection
|
||||
) {
|
||||
self.wfPost = WFPost(body: body, title: title, createdDate: createdDate)
|
||||
|
@ -21,8 +21,8 @@ struct PostStatusBadgeView: View {
|
||||
var badgeColor: Color
|
||||
|
||||
switch status {
|
||||
case .draft:
|
||||
badgeLabel = "draft"
|
||||
case .local:
|
||||
badgeLabel = "local"
|
||||
badgeColor = Color(red: 0.75, green: 0.5, blue: 0.85, opacity: 1.0)
|
||||
case .edited:
|
||||
badgeLabel = "edited"
|
||||
|
Loading…
Reference in New Issue
Block a user