File tree Expand file tree Collapse file tree 1 file changed +19
-14
lines changed
swift-paperless/Views/Document Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -267,26 +267,31 @@ struct DocumentView: View {
267267 TaskActivityToolbar ( navState: $taskViewNavState)
268268
269269 Menu {
270- if isDocumentScannerAvailable {
270+ Group {
271+ if isDocumentScannerAvailable {
272+ Button {
273+ showDocumentScanner = true
274+ } label: {
275+ Label ( String ( localized: . localizable( . scanDocument) ) , systemImage: " doc.viewfinder " )
276+ }
277+ }
278+
271279 Button {
272- showDocumentScanner = true
280+ showFileImporter = true
273281 } label: {
274- Label ( String ( localized: . localizable( . scanDocument) ) , systemImage: " doc.viewfinder " )
282+ Label (
283+ String ( localized: . localizable( . importDocument) ) , systemImage: " folder.badge.plus " )
275284 }
276- }
277285
278- Button {
279- showFileImporter = true
280- } label: {
281- Label (
282- String ( localized: . localizable( . importDocument) ) , systemImage: " folder.badge.plus " )
283- }
286+ Button {
287+ showPhotosPicker = true
288+ } label: {
289+ Label ( String ( localized: . localizable( . importPhotos) ) , systemImage: " photo " )
290+ }
284291
285- Button {
286- showPhotosPicker = true
287- } label: {
288- Label ( String ( localized: . localizable( . importPhotos) ) , systemImage: " photo " )
289292 }
293+ . disabled ( !store. permissions. test ( . add, for: . document) )
294+
290295 } label: {
291296 Label ( String ( localized: . localizable( . add) ) , systemImage: " plus " )
292297 }
You can’t perform that action at this time.
0 commit comments