import AuthenticatedRoute from 'ghost-admin/routes/authenticated';

export default AuthenticatedRoute.extend({

    controllerName: 'settings.tags.tag',

    model() {
        return this.store.createRecord('tag');
    },

    renderTemplate() {
        this.render('settings.tags.tag');
    },

    // reset the model so that mobile screens react to an empty selectedTag
    deactivate() {
        this._super(...arguments);
        this.set('controller.model', null);
    }

});
