Explorar o código

disable when kibela

itizawa %!s(int64=6) %!d(string=hai) anos
pai
achega
307aa84bed
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/client/js/services/AdminCustomizeContainer.js

+ 4 - 0
src/client/js/services/AdminCustomizeContainer.js

@@ -37,6 +37,10 @@ export default class AdminCustomizeContainer extends Container {
    * Switch themeType
    */
   switchThemeType(themeName) {
+    // can't choose theme when kibela
+    if (this.state.layoutType === 'kibela') {
+      return;
+    }
     this.setState({ themeType: themeName });
   }