Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Update to latest version of primeng

Chocobozzz4c96be761654
diff --git a/client/src/app/+admin/system/jobs/jobs.component.html b/client/src/app/+admin/system/jobs/jobs.component.html
index 6bdcc427e7..5e717a9f45 100644
--- a/client/src/app/+admin/system/jobs/jobs.component.html
+++ b/client/src/app/+admin/system/jobs/jobs.component.html
@@ -1,5 +1,5 @@
@if (isRunnerEnabled()) {
- <div class="alert alert-info" i18n>Some jobs are also processed by <a routerLink="/admin/settings/system/runners/jobs-list">remote runners</a>.</div>
+ <div class="callout callout-primary mb-4" i18n>Some jobs are also processed by <a routerLink="/admin/settings/system/runners/jobs-list">remote runners</a>.</div>
}
<my-table
diff --git a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html
index bc2d34d79c..ae7519800d 100644
--- a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html
+++ b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html
@@ -201,7 +201,7 @@
<label i18n for="deleteVideo">Change ownership of your video</label>
<div class="form-group-description" i18n>A modal window will open for you to specify the local account to which you want to transfer your video</div>
- <button class="peertube-button danger-button" (click)="showChangeOwnershipModal()" [disabled]="ownershipRequestSent" i18n>Transfer ownership</button>
+ <button type="button" class="peertube-button danger-button" (click)="showChangeOwnershipModal()" [disabled]="ownershipRequestSent" i18n>Transfer ownership</button>
@if (ownershipRequestSent) {
<my-alert class="d-block mt-3" type="success">
@@ -220,7 +220,7 @@
<label i18n for="deleteVideo">Delete your video</label>
<div class="form-group-description" i18n>Warning: this is a definitive action!</div>
- <button class="peertube-button danger-button" (click)="deleteVideo()" i18n>Delete</button>
+ <button type="button" class="peertube-button danger-button" (click)="deleteVideo()" i18n>Delete</button>
</div>
</div>
}
diff --git a/client/src/app/shared/shared-forms/select/select-tags.component.html b/client/src/app/shared/shared-forms/select/select-tags.component.html
index d8e4cc9c00..7c68f26021 100644
--- a/client/src/app/shared/shared-forms/select/select-tags.component.html
+++ b/client/src/app/shared/shared-forms/select/select-tags.component.html
@@ -1,10 +1,10 @@
-<p-chips
+<p-autoComplete
[(ngModel)]="selectedItems"
(ngModelChange)="onModelChange()"
[placeholder]="placeholder()"
[inputId]="inputId()"
- [allowDuplicate]="false"
- [caseSensitiveDuplication]="false"
[separator]="separator"
[class.small]="small()"
-></p-chips>
+ multiple="true"
+ [typeahead]="false"
+></p-autoComplete>
diff --git a/client/src/app/shared/shared-forms/select/select-tags.component.ts b/client/src/app/shared/shared-forms/select/select-tags.component.ts
index 7624b2eaaa..7fd1e3c858 100644
--- a/client/src/app/shared/shared-forms/select/select-tags.component.ts
+++ b/client/src/app/shared/shared-forms/select/select-tags.component.ts
@@ -1,7 +1,7 @@
import { Component, OnInit, booleanAttribute, forwardRef, input, model } from '@angular/core'
import { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms'
import { isMobile } from '@root-helpers/web-browser'
-import { ChipsModule } from 'primeng/chips'
+import { AutoCompleteModule } from 'primeng/autocomplete'
@Component({
selector: 'my-select-tags',
@@ -13,7 +13,7 @@ import { ChipsModule } from 'primeng/chips'
multi: true
}
],
- imports: [ ChipsModule, FormsModule ]
+ imports: [ AutoCompleteModule, FormsModule ]
})
export class SelectTagsComponent implements OnInit, ControlValueAccessor {
readonly inputId = input.required<string>()
diff --git a/client/src/app/shared/shared-tables/table.component.html b/client/src/app/shared/shared-tables/table.component.html
index 70104651cf..d86a0bd93b 100644
--- a/client/src/app/shared/shared-tables/table.component.html
+++ b/client/src/app/shared/shared-tables/table.component.html
@@ -23,7 +23,7 @@
>
<ng-template #caption>
<div class="caption">
- <div class="left-buttons">
+ <div class="left-block">
@if (isInSelectionMode()) {
<my-action-dropdown i18n-label label="Batch actions" theme="primary" [actions]="bulkActions()" [entry]="selectedRows"></my-action-dropdown>
} @else {
diff --git a/client/src/sass/primeng.scss b/client/src/sass/primeng.scss
index 9808840900..2dda981141 100644
--- a/client/src/sass/primeng.scss
+++ b/client/src/sass/primeng.scss
@@ -223,7 +223,7 @@ p-table {
flex-wrap: wrap;
gap: 0.5rem;
- .left-buttons {
+ .left-block {
color: pvar(--fg-300);
@include font-size(22px);
@@ -268,37 +268,35 @@ p-table {
text-transform: uppercase;
}
- p-paginator {
- .p-paginator {
- padding-top: 1rem;
+ .p-paginator {
+ padding-top: 1rem;
- border-top: 1px solid pvar(--bg-secondary-400) !important;
- display: flex;
- justify-content: center;
- align-items: center;
- }
+ border-top: 1px solid pvar(--bg-secondary-400) !important;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
- .p-paginator-first {
- margin-left: auto;
- }
+ .p-paginator-first {
+ margin-left: auto;
+ }
- .p-paginator-last {
- margin-right: auto;
- }
+ .p-paginator-last {
+ margin-right: auto;
+ }
- .p-iconwrapper {
- color: pvar(--fg-300);
- }
+ .p-iconwrapper {
+ color: pvar(--fg-300);
+ }
- .p-paginator-page-selected {
- font-weight: $font-bold !important;
- }
+ .p-paginator-page-selected {
+ font-weight: $font-bold !important;
+ }
- .p-paginator-content-end {
- color: pvar(--fg-300);
+ .p-paginator-content-end {
+ color: pvar(--fg-300);
- @include margin-left(0);
- }
+ @include margin-left(0);
}
@media screen and (max-width: $small-view) {
@@ -308,26 +306,22 @@ p-table {
}
}
- p-paginator {
- .p-paginator-current {
- display: none !important;
- }
+ .p-paginator-current {
+ display: none !important;
}
}
@media screen and (max-width: $mobile-view) {
- p-paginator {
- .p-paginator-page:not(.p-paginator-page-selected) {
- display: none;
- }
+ .p-paginator-page:not(.p-paginator-page-selected) {
+ display: none;
+ }
- .p-paginator-rpp-dropdown {
- display: none;
- }
+ .p-paginator-rpp-dropdown {
+ display: none;
+ }
- .p-paginator-content-end {
- display: none;
- }
+ .p-paginator-content-end {
+ display: none;
}
.p-datatable-header .caption > * {