Fix id of Items, saving

This commit is contained in:
Christoph Hagen
2025-06-11 08:19:44 +02:00
parent 5970ce2e9f
commit 1d0eba9d78
64 changed files with 233 additions and 217 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)
}

View File

@ -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)

View File

@ -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