From cc11ed0fc51e66dd18db18872b3a93c9ab341b90 Mon Sep 17 00:00:00 2001 From: Brandon Stull Date: Fri, 1 Mar 2019 10:25:07 -0500 Subject: [PATCH] #46 Added toggle for 'restrict_publish' to widget admin panel. --- src/js/controllers/ctrl-admin-widget.js | 1 + src/js/controllers/ctrl-admin-widget.test.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/js/controllers/ctrl-admin-widget.js b/src/js/controllers/ctrl-admin-widget.js index b57e2cac..01845d06 100644 --- a/src/js/controllers/ctrl-admin-widget.js +++ b/src/js/controllers/ctrl-admin-widget.js @@ -8,6 +8,7 @@ app.controller('adminWidgetController', function($scope, Please, adminSrv) { is_editable: widget.is_editable, is_scorable: widget.is_scorable, is_playable: widget.is_playable, + restrict_publish: widget.restrict_publish, about: widget.meta_data.about, excerpt: widget.meta_data.excerpt, demo: widget.meta_data.demo diff --git a/src/js/controllers/ctrl-admin-widget.test.js b/src/js/controllers/ctrl-admin-widget.test.js index ab7f9b81..8537acc9 100644 --- a/src/js/controllers/ctrl-admin-widget.test.js +++ b/src/js/controllers/ctrl-admin-widget.test.js @@ -70,6 +70,7 @@ describe('adminWidgetController', () => { is_editable: 'f', is_scorable: 'f', is_playable: 'f', + restrict_publish: 'f', meta_data: { about: 'f', excerpt: 'f',