From b4bae4741a4de20606f989584baf0218600d5d3b Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 18 Feb 2016 17:57:18 +0000 Subject: [PATCH] Revert "pass post tags as array to ember-cli-selectize" This reverts commit efff6f62aee624c2228d2f2cef7894b3142b1ea2. --- core/client/app/controllers/post-settings-menu.js | 5 ----- core/client/app/templates/post-settings-menu.hbs | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core/client/app/controllers/post-settings-menu.js b/core/client/app/controllers/post-settings-menu.js index a8a544a579..3662eefd1d 100644 --- a/core/client/app/controllers/post-settings-menu.js +++ b/core/client/app/controllers/post-settings-menu.js @@ -174,11 +174,6 @@ export default Controller.extend(SettingsMenuMixin, { this.set('debounceId', debounceId); }, - // this exists because selectize throws errors on transition if it doesn't - existingTags: computed('model.tags.[]', function () { - return this.get('model.tags').toArray(); - }), - // live-query of all tags for tag input autocomplete availableTags: computed(function () { return this.get('store').filter('tag', {limit: 'all'}, () => { diff --git a/core/client/app/templates/post-settings-menu.hbs b/core/client/app/templates/post-settings-menu.hbs index 7c47a8812b..9b6e68298f 100644 --- a/core/client/app/templates/post-settings-menu.hbs +++ b/core/client/app/templates/post-settings-menu.hbs @@ -41,7 +41,7 @@ {{gh-selectize id="tag-input" multiple=true - selection=existingTags + selection=model.tags content=availableTags optionValuePath="content.uuid" optionLabelPath="content.name"