DEV: Fix array-related linting issues in templates (#22935)

and remove more linting exemptions
This commit is contained in:
Jarek Radosz
2023-08-02 19:43:37 +02:00
committed by GitHub
parent cc7dabe20d
commit c5c786b4ac
10 changed files with 25 additions and 23 deletions

View File

@ -11,11 +11,18 @@ export default class AdminUserFieldsController extends Controller {
@service dialog;
fieldTypes = null;
fieldSortOrder = ["position"];
@gte("model.length", MAX_FIELDS) createDisabled;
@sort("model", "fieldSortOrder") sortedFields;
fieldSortOrder = ["position"];
get firstField() {
return this.sortedFields[0];
}
get lastField() {
return this.sortedFields[this.sortedFields.length - 1];
}
@action
createField() {