Compare commits

...

6 Commits

Author SHA1 Message Date
Crowdin Bot
1d7443f646 New Crowdin translations by GitHub Action 2025-03-26 12:13:07 +00:00
shamoon
7a07f1e81d Remove unnecessary check 2025-03-21 10:28:20 -07:00
shamoon
92524ae97a Chore: remove a couple of console logs 2025-03-21 10:24:59 -07:00
shamoon
1c89f6da24 More narrow device tweaks 2025-03-21 10:24:59 -07:00
shamoon
d1a3e3b859 Fix: top nav layout with custom title on very narrow screens 2025-03-21 10:24:58 -07:00
shamoon
79ae594d54 Fix: fix saving docs with notes 2025-03-21 10:24:58 -07:00
9 changed files with 35 additions and 37 deletions

View File

@@ -15,7 +15,7 @@
</svg>
<div class="ms-2 ms-md-3 d-inline-block" [class.d-md-none]="slimSidebarEnabled">
@if (customAppTitle?.length) {
<div class="d-flex flex-column align-items-start">
<div class="d-flex flex-column align-items-start custom-title">
<span class="title">{{customAppTitle}}</span>
<span class="byline text-uppercase font-monospace" i18n>by Paperless-ngx</span>
</div>

View File

@@ -244,7 +244,7 @@ main {
}
}
@media screen and (max-width: 768px) {
@media screen and (min-width: 366px) and (max-width: 768px) {
.navbar-toggler {
// compensate for 2 buttons on the right
margin-right: 45px;
@@ -257,6 +257,13 @@ main {
}
}
@media screen and (max-width: 345px) {
.custom-title {
max-width: 110px;
overflow: hidden;
}
}
:host ::ng-deep .dropdown.show .dropdown-toggle,
:host ::ng-deep .dropdown-toggle:hover {
opacity: 0.7;

View File

@@ -492,11 +492,9 @@ describe('FilterableDropdownComponent & FilterableDropdownSelectionModel', () =>
component.selectionModel.items = items
component.selectionModel = selectionModel
component.selectionModel.intersection = Intersection.Include
console.log(component.selectionModel.items[0])
component.selectionModel.set(null, ToggleableItemState.Selected)
component.selectionModel.intersection = Intersection.Exclude
component.selectionModel.toggleIntersection()
console.log(component.selectionModel)
expect(component.selectionModel.getExcludedItems()).toEqual([
negativeNullItem,
])

View File

@@ -825,10 +825,6 @@ export class DocumentDetailComponent
error: (error) => {
this.networkActive = false
const canEdit =
this.permissionsService.currentUserCan(
PermissionAction.Change,
PermissionType.Document
) &&
this.permissionsService.currentUserHasObjectPermissions(
PermissionAction.Change,
this.document

View File

@@ -602,7 +602,6 @@ export class SettingsService {
)
} catch (error) {
this.toastService.showError(errorMessage)
console.log(error)
}
this.storeSettings()
@@ -614,7 +613,6 @@ export class SettingsService {
},
error: (e) => {
this.toastService.showError(errorMessage)
console.log(e)
},
})
}
@@ -636,7 +634,6 @@ export class SettingsService {
this.toastService.showError(
'Error migrating update checking setting'
)
console.log(e)
},
})
}

View File

@@ -24,7 +24,7 @@
--pngx-bg-alt2: var(--bs-gray-200); // #e9ecef
--pngx-bg-disabled: #f7f7f7;
--pngx-focus-alpha: 0.3;
--pngx-toast-max-width: 360px;
--pngx-toast-max-width: 340px;
--bs-info: var(--pngx-bg-alt2);
--bs-info-rgb: 233, 236, 239;
@media screen and (min-width: 1024px) {

View File

@@ -870,7 +870,7 @@ class BasicUserSerializer(serializers.ModelSerializer):
class NotesSerializer(serializers.ModelSerializer):
user = BasicUserSerializer()
user = BasicUserSerializer(read_only=True)
class Meta:
model = Note
@@ -893,7 +893,7 @@ class DocumentSerializer(
created_date = serializers.DateField(required=False)
page_count = SerializerMethodField()
notes = NotesSerializer(many=True, required=False)
notes = NotesSerializer(many=True, required=False, read_only=True)
custom_fields = CustomFieldInstanceSerializer(
many=True,

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-03-11 13:33-0700\n"
"PO-Revision-Date: 2025-03-18 12:12\n"
"PO-Revision-Date: 2025-03-26 12:12\n"
"Last-Translator: \n"
"Language-Team: German\n"
"Language: de_DE\n"
@@ -1184,7 +1184,7 @@ msgstr "Ungültige Variable erkannt."
#: documents/templates/account/account_inactive.html:5
msgid "Paperless-ngx account inactive"
msgstr "Papierlos-ngx-Konto inaktiv"
msgstr "Paperless-ngx Konto inaktiv"
#: documents/templates/account/account_inactive.html:9
msgid "Account inactive."

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-03-11 13:33-0700\n"
"PO-Revision-Date: 2025-03-11 20:35\n"
"PO-Revision-Date: 2025-03-24 12:13\n"
"Last-Translator: \n"
"Language-Team: Norwegian\n"
"Language: no_NO\n"
@@ -55,7 +55,7 @@ msgstr ""
#: documents/filters.py:827
msgid "Custom field not found"
msgstr ""
msgstr "Egendefinert felt ble ikke funnet"
#: documents/models.py:36 documents/models.py:710
msgid "owner"
@@ -196,11 +196,11 @@ msgstr "Sjekksummen av det arkiverte dokumentet."
#: documents/models.py:205
msgid "page count"
msgstr ""
msgstr "antall sider"
#: documents/models.py:212
msgid "The number of pages of the document."
msgstr ""
msgstr "Antall sider i dokumentet."
#: documents/models.py:216 documents/models.py:630 documents/models.py:668
#: documents/models.py:739 documents/models.py:797
@@ -318,7 +318,7 @@ msgstr "ASN"
#: documents/models.py:395
msgid "Pages"
msgstr ""
msgstr "Sider"
#: documents/models.py:401
msgid "show on dashboard"
@@ -526,7 +526,7 @@ msgstr "har ikke egendefinert felt"
#: documents/models.py:489
msgid "custom fields query"
msgstr ""
msgstr "egendefinerte felt spørring"
#: documents/models.py:490
msgid "created to"
@@ -566,15 +566,15 @@ msgstr "filtrer regler"
#: documents/models.py:534
msgid "Auto Task"
msgstr ""
msgstr "Automatisk oppgave"
#: documents/models.py:535
msgid "Scheduled Task"
msgstr ""
msgstr "Planlagt oppgave"
#: documents/models.py:536
msgid "Manual Task"
msgstr ""
msgstr "Manuell oppgave"
#: documents/models.py:539
msgid "Consume File"
@@ -590,7 +590,7 @@ msgstr ""
#: documents/models.py:542
msgid "Index Optimize"
msgstr ""
msgstr "index optimalisering"
#: documents/models.py:547
msgid "Task ID"
@@ -622,7 +622,7 @@ msgstr "Oppgavenavn"
#: documents/models.py:569
msgid "Name of the task that was run"
msgstr ""
msgstr "Navn på oppgaven som ble kjørt"
#: documents/models.py:576
msgid "Task State"
@@ -666,11 +666,11 @@ msgstr "Dataene returnert av oppgaven"
#: documents/models.py:614
msgid "Task Type"
msgstr ""
msgstr "Oppgave type"
#: documents/models.py:615
msgid "The type of task that was run"
msgstr ""
msgstr "Type oppgave som ble utført"
#: documents/models.py:626
msgid "Note for the document"
@@ -722,7 +722,7 @@ msgstr "URL"
#: documents/models.py:730
msgid "Date"
msgstr ""
msgstr "Dato"
#: documents/models.py:731
msgid "Boolean"
@@ -746,7 +746,7 @@ msgstr "Dokument lenke"
#: documents/models.py:736
msgid "Select"
msgstr ""
msgstr "Velg"
#: documents/models.py:748
msgid "data type"
@@ -790,7 +790,7 @@ msgstr "Dokument oppdatert"
#: documents/models.py:932
msgid "Scheduled"
msgstr ""
msgstr "Planlagt"
#: documents/models.py:935
msgid "Consume Folder"
@@ -806,15 +806,15 @@ msgstr "Epost-henting"
#: documents/models.py:938
msgid "Web UI"
msgstr ""
msgstr "Web UI"
#: documents/models.py:943
msgid "Modified"
msgstr ""
msgstr "Endret"
#: documents/models.py:944
msgid "Custom Field"
msgstr ""
msgstr "Egendefinerte felt"
#: documents/models.py:947
msgid "Workflow Trigger Type"
@@ -898,7 +898,7 @@ msgstr ""
#: documents/models.py:1075
msgid "email subject"
msgstr ""
msgstr "e-post emne"
#: documents/models.py:1079
msgid "The subject of the email, can include some placeholders, see documentation."
@@ -906,7 +906,7 @@ msgstr ""
#: documents/models.py:1085
msgid "email body"
msgstr ""
msgstr "epost innhold"
#: documents/models.py:1088
msgid "The body (message) of the email, can include some placeholders, see documentation."