diff --git a/FrontEnd/src/app/groups/sharing-resources-in-groups/sharing-resources-in-groups.component.html b/FrontEnd/src/app/groups/sharing-resources-in-groups/sharing-resources-in-groups.component.html index bdaff88..8e20ac5 100644 --- a/FrontEnd/src/app/groups/sharing-resources-in-groups/sharing-resources-in-groups.component.html +++ b/FrontEnd/src/app/groups/sharing-resources-in-groups/sharing-resources-in-groups.component.html @@ -28,6 +28,9 @@

+
+ Brak elementów do dodania +
\ No newline at end of file diff --git a/FrontEnd/src/app/groups/sharing-resources-in-groups/sharing-resources-in-groups.component.ts b/FrontEnd/src/app/groups/sharing-resources-in-groups/sharing-resources-in-groups.component.ts index 72b723d..fa4a8bb 100644 --- a/FrontEnd/src/app/groups/sharing-resources-in-groups/sharing-resources-in-groups.component.ts +++ b/FrontEnd/src/app/groups/sharing-resources-in-groups/sharing-resources-in-groups.component.ts @@ -65,10 +65,10 @@ export class SharingResourcesInGroupsComponent implements OnInit, OnDestroy { this.testsToAdd = []; this.flashcardsToAdd = []; this.materialsToAdd = success.map(this.addPropertiesToDisplayInMultiselectList); - if (this.materialsToAdd.length === 0) { + /*if (this.materialsToAdd.length === 0) { this.snackBar.open('Brak materiałów, które możesz dodać do grupy.', null, { duration: 3000, verticalPosition: 'top', panelClass: ['snackbar-error'] }); - } + }*/ }, error => { this.snackBar.open('Wystąpił błąd serwera. Spróbuj ponownie później.', null, @@ -86,10 +86,10 @@ export class SharingResourcesInGroupsComponent implements OnInit, OnDestroy { this.flashcardsToAdd = []; this.materialsToAdd = []; this.testsToAdd = success.map(this.addPropertiesToDisplayInMultiselectList); - if (this.testsToAdd.length === 0) { + /*if (this.testsToAdd.length === 0) { this.snackBar.open('Brak testów, które możesz dodać do grupy.', null, { duration: 3000, verticalPosition: 'top', panelClass: ['snackbar-error'] }); - } + }*/ }, error => { this.snackBar.open('Wystąpił błąd serwera. Spróbuj ponownie później.', null, @@ -107,10 +107,10 @@ export class SharingResourcesInGroupsComponent implements OnInit, OnDestroy { this.materialsToAdd = []; this.testsToAdd = []; this.flashcardsToAdd = success.map(this.addPropertiesToDisplayInMultiselectList); - if (this.flashcardsToAdd.length === 0) { + /*if (this.flashcardsToAdd.length === 0) { this.snackBar.open('Brak fiszek, które możesz dodać do grupy.', null, { duration: 3000, verticalPosition: 'top', panelClass: ['snackbar-error'] }); - } + }*/ }, error => { this.snackBar.open('Wystąpił błąd serwera. Spróbuj ponownie później.', null, diff --git a/FrontEnd/src/styles.css b/FrontEnd/src/styles.css index 6ed7be9..8101cbe 100644 --- a/FrontEnd/src/styles.css +++ b/FrontEnd/src/styles.css @@ -162,3 +162,8 @@ a:hover{ background-color: orange; border-color: orange; } + +.ui-listbox { + display: block !important; + width: 700px !important; +}