84a39ccb62
For Motion poll: - Overworked how motion poll chart displays the legend - Added the vote counter to the motion detail - Added a progress bar to the vote counter - Fixed some perm errors with the chart - Show a "Singe Votes" link as button for published named polls - Replace the edit-button with a dot-menu - Having project, Edit, PDF and Delete For Motion Poll detail: - enhance search panel - Remove the breadcrumbs - Remove the vote counter - Enhanced the single-vote grid, table and filter bar - Enhance how the poll state enum was checkend For the Motion Poll Create/Update Form: - Remove the selection of poll-methode (whenever possible) - only show "publish imediately" during creation
21 lines
416 B
TypeScript
21 lines
416 B
TypeScript
import { Pipe, PipeTransform } from '@angular/core';
|
|
|
|
/**
|
|
* Invert the order of arrays in templates
|
|
*
|
|
* @example
|
|
* ```html
|
|
* <li *ngFor="let user of users | reverse">
|
|
* {{ user.name }} has the id: {{ user.id }}
|
|
* </li>
|
|
* ```
|
|
*/
|
|
@Pipe({
|
|
name: 'reverse'
|
|
})
|
|
export class ReversePipe implements PipeTransform {
|
|
public transform(value: any[]): any[] {
|
|
return value.slice().reverse();
|
|
}
|
|
}
|