Fix id of Items, saving
This commit is contained in:
@ -24,7 +24,7 @@ struct FilePropertyView: View {
|
||||
var body: some View {
|
||||
GenericPropertyView(title: title, footer: footer) {
|
||||
HStack {
|
||||
Text(selectedFile?.id ?? "No file selected")
|
||||
Text(selectedFile?.identifier ?? "No file selected")
|
||||
Spacer()
|
||||
Button("Select") {
|
||||
showFileSelectionSheet = true
|
||||
|
@ -36,7 +36,7 @@ struct OptionalImagePropertyView: View {
|
||||
}
|
||||
|
||||
HStack {
|
||||
Text(selectedImage?.id ?? "No file selected")
|
||||
Text(selectedImage?.identifier ?? "No file selected")
|
||||
Spacer()
|
||||
Button("Select") {
|
||||
showSelectionSheet = true
|
||||
|
@ -15,7 +15,7 @@ struct PagePropertyView: View {
|
||||
var body: some View {
|
||||
GenericPropertyView(title: title, footer: footer) {
|
||||
HStack {
|
||||
Text(selectedPage?.id ?? "No page selected")
|
||||
Text(selectedPage?.identifier ?? "No page selected")
|
||||
Spacer()
|
||||
Button("Select") {
|
||||
showPageSelectionSheet = true
|
||||
|
@ -16,7 +16,7 @@ struct TagDisplayView: View {
|
||||
|
||||
var body: some View {
|
||||
FlowHStack {
|
||||
ForEach(tags, id: \.id) { tag in
|
||||
ForEach(tags, id: \.identifier) { tag in
|
||||
TagView(text: tag.localized(in: language).name)
|
||||
.foregroundStyle(.white)
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ struct TagPickerView: View {
|
||||
Text("Select a tag to link to")
|
||||
List(content.tags, selection: $newSelection) { tag in
|
||||
let loc = tag.localized(in: language)
|
||||
Text("\(loc.title) (\(tag.id))")
|
||||
Text("\(loc.title) (\(tag.identifier))")
|
||||
.tag(tag)
|
||||
}
|
||||
.frame(minHeight: 300)
|
||||
|
@ -15,7 +15,7 @@ struct TagPropertyView: View {
|
||||
var body: some View {
|
||||
GenericPropertyView(title: title, footer: footer) {
|
||||
HStack {
|
||||
Text(selectedTag?.id ?? "No tag selected")
|
||||
Text(selectedTag?.identifier ?? "No tag selected")
|
||||
Spacer()
|
||||
Button("Select") {
|
||||
showTagSelectionSheet = true
|
||||
|
Reference in New Issue
Block a user