From d72547433af3ec5829ce0de4f4e1cfd440be7142 Mon Sep 17 00:00:00 2001
From: Carlos Tadeu Panato Junior <ctadeu@gmail.com>
Date: Fri, 27 Jan 2017 11:39:13 +0100
Subject: Move remaining client functions in components to actions (#5171)

---
 webapp/components/admin_console/purge_caches.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'webapp/components/admin_console/purge_caches.jsx')

diff --git a/webapp/components/admin_console/purge_caches.jsx b/webapp/components/admin_console/purge_caches.jsx
index 2d8db7bfa..9f52433d5 100644
--- a/webapp/components/admin_console/purge_caches.jsx
+++ b/webapp/components/admin_console/purge_caches.jsx
@@ -3,10 +3,10 @@
 
 import React from 'react';
 
-import Client from 'client/web_client.jsx';
-
 import {FormattedMessage} from 'react-intl';
 
+import {invalidateAllCaches} from 'actions/admin_actions.jsx';
+
 export default class PurgeCachesButton extends React.Component {
     constructor(props) {
         super(props);
@@ -27,7 +27,7 @@ export default class PurgeCachesButton extends React.Component {
             fail: null
         });
 
-        Client.invalidateAllCaches(
+        invalidateAllCaches(
             () => {
                 this.setState({
                     loading: false
-- 
cgit v1.2.3-1-g7c22

