mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 10:11:03 +01:00 
			
		
		
		
	Add comment.
This commit is contained in:
		
							parent
							
								
									2b0790b32b
								
							
						
					
					
						commit
						20a442c962
					
				@ -148,6 +148,14 @@ class ScalarAuthClient {
 | 
				
			|||||||
        return defer.promise;
 | 
					        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) {
 | 
					    disableWidgetAssets(widgetType, widgetId) {
 | 
				
			||||||
        let url = SdkConfig.get().integrations_rest_url + '/widgets/set_assets_state';
 | 
					        let url = SdkConfig.get().integrations_rest_url + '/widgets/set_assets_state';
 | 
				
			||||||
        url = this.getStarterLink(url);
 | 
					        url = this.getStarterLink(url);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user