Refactor add-contributor component to DDAU

This commit is contained in:
2018-04-06 14:04:44 +02:00
committed by Michael Bumann
parent fa7db66f4e
commit 8f841522a3
7 changed files with 101 additions and 95 deletions
+8
View File
@@ -0,0 +1,8 @@
import computed from 'ember-computed';
import { isPresent } from 'ember-utils';
export default function(key) {
return computed(key, function() {
return isPresent(this.get(key));
});
}