Fix lint errors
All checks were successful
CI / Lint (pull_request) Successful in 21s
CI / Test (pull_request) Successful in 34s

This commit is contained in:
2026-03-13 13:51:29 +04:00
parent b2220b8310
commit 990f3afa88
4 changed files with 15 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ import { service } from '@ember/service';
import { action } from '@ember/object';
import { on } from '@ember/modifier';
import { fn } from '@ember/helper';
import Icon from './icon';
import { htmlSafe } from '@ember/template';
import onClickOutside from '../modifiers/on-click-outside';
export default class PlaceListsManager extends Component {
@@ -17,6 +17,10 @@ export default class PlaceListsManager extends Component {
return this.args.place._listIds || [];
}
styleFor(color) {
return htmlSafe(`background-color: ${color}`);
}
@action
isInList(list) {
if (!this.placeListIds) return false;
@@ -59,10 +63,7 @@ export default class PlaceListsManager extends Component {
}
<template>
<div
class="place-lists-manager"
{{onClickOutside @onClose}}
>
<div class="place-lists-manager" {{onClickOutside @onClose}}>
<div class="list-item master-toggle">
<label>
<input
@@ -86,7 +87,11 @@ export default class PlaceListsManager extends Component {
{{on "change" (fn this.toggleList list)}}
disabled={{unless this.isSaved true}}
/>
<span class="list-color" style="background-color: {{list.color}}"></span>
{{! template-lint-disable no-inline-styles }}
<span
class="list-color"
style={{this.styleFor list.color}}
></span>
<span class="list-name">{{list.title}}</span>
</label>
</div>