From 20a442c9626d55bb71621313b1d6385d394e3d47 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Sun, 25 Feb 2018 23:00:46 +0000 Subject: [PATCH] Add comment. --- src/ScalarAuthClient.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ScalarAuthClient.js b/src/ScalarAuthClient.js index fea7ee9aa4..c7e439bf2e 100644 --- a/src/ScalarAuthClient.js +++ b/src/ScalarAuthClient.js @@ -148,6 +148,14 @@ class ScalarAuthClient { return defer.promise; } + /** + * Mark all assets associated with the specified widget as "disabled" in the + * integration manager database. + * This can be useful to temporarily prevent purchased assets from being displayed. + * @param {string} widgetType [description] + * @param {string} widgetId [description] + * @return {Promise} Resolves on completion + */ disableWidgetAssets(widgetType, widgetId) { let url = SdkConfig.get().integrations_rest_url + '/widgets/set_assets_state'; url = this.getStarterLink(url);