mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add create label option on share ext
This commit is contained in:
parent
f3d2b6c89f
commit
868886ab83
1 changed files with 14 additions and 0 deletions
|
|
@ -240,11 +240,25 @@ struct ApplyLabelsListView: View {
|
|||
#endif
|
||||
}
|
||||
}
|
||||
Button(
|
||||
action: { viewModel.showCreateLabelModal = true },
|
||||
label: {
|
||||
HStack {
|
||||
Image(systemName: "plus.circle.fill").foregroundColor(.green)
|
||||
Text("Create a new Label").foregroundColor(.appGrayTextContrast)
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
)
|
||||
.disabled(viewModel.isLoading)
|
||||
}
|
||||
.listStyle(PlainListStyle())
|
||||
.padding(.vertical, 0)
|
||||
.task {
|
||||
await viewModel.loadLabels(dataService: dataService, item: linkedItem)
|
||||
}
|
||||
.sheet(isPresented: $viewModel.showCreateLabelModal) {
|
||||
CreateLabelView(viewModel: viewModel)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue