mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 13:51:09 +08:00
REFACTOR: Use a module for Ember.isEmpty
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import Component from "@ember/component";
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
|
||||
@ -5,7 +6,7 @@ export default Component.extend({
|
||||
@computed("value")
|
||||
enabled: {
|
||||
get(value) {
|
||||
if (Ember.isEmpty(value)) {
|
||||
if (isEmpty(value)) {
|
||||
return false;
|
||||
}
|
||||
return value.toString() === "true";
|
||||
|
Reference in New Issue
Block a user