From 64db2e633e7a58b0cf0d4df88776b9e914ec3c69 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 4a17669b04135e24679a72c521ce9bf75ae86ea0. --- ghost/admin/app/controllers/post-settings-menu.js | 5 ----- ghost/admin/app/templates/post-settings-menu.hbs | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ghost/admin/app/controllers/post-settings-menu.js b/ghost/admin/app/controllers/post-settings-menu.js index a8a544a579..3662eefd1d 100644 --- a/ghost/admin/app/controllers/post-settings-menu.js +++ b/ghost/admin/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/ghost/admin/app/templates/post-settings-menu.hbs b/ghost/admin/app/templates/post-settings-menu.hbs index 7c47a8812b..9b6e68298f 100644 --- a/ghost/admin/app/templates/post-settings-menu.hbs +++ b/ghost/admin/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"