mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-24 00:59:35 -06:00
Note
This commit is contained in:
@@ -16,6 +16,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@if (note) {
|
||||||
|
<div class="small text-muted fst-italic mt-2">
|
||||||
|
{{ note }}
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
@if (!buttonsEnabled) {
|
@if (!buttonsEnabled) {
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ export class PermissionsDialogComponent {
|
|||||||
@Input()
|
@Input()
|
||||||
title = $localize`Set permissions`
|
title = $localize`Set permissions`
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
note: string = null
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
set object(o: ObjectWithPermissions) {
|
set object(o: ObjectWithPermissions) {
|
||||||
this.o = o
|
this.o = o
|
||||||
|
|||||||
@@ -254,6 +254,7 @@ export class SavedViewsComponent
|
|||||||
})
|
})
|
||||||
const dialog = modal.componentInstance as PermissionsDialogComponent
|
const dialog = modal.componentInstance as PermissionsDialogComponent
|
||||||
dialog.object = savedView
|
dialog.object = savedView
|
||||||
|
dialog.note = $localize`Note: Sharing saved views does not share the underlying documents.`
|
||||||
|
|
||||||
modal.componentInstance.confirmClicked.subscribe(({ permissions }) => {
|
modal.componentInstance.confirmClicked.subscribe(({ permissions }) => {
|
||||||
modal.componentInstance.buttonsEnabled = false
|
modal.componentInstance.buttonsEnabled = false
|
||||||
|
|||||||
Reference in New Issue
Block a user