Преглед на файлове

[core] Sharing document is always turned off (#1935)

Quick grepping: seems like a big bug where we should rename 'sharing_enabled --> enable_sharing'

sharing_enabled does not exist anywhere

In get_config

--> 'enable_sharing': ENABLE_SHARING.get()
Romain Rigaux преди 4 години
родител
ревизия
f17dd20451
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      desktop/core/src/desktop/js/apps/editor/EditorViewModel.js

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/EditorViewModel.js

@@ -68,7 +68,7 @@ export default class EditorViewModel {
     this.sharingEnabled = ko.pureComputed(
       () =>
         this.config() &&
-        (this.config().hue_config.is_admin || this.config().hue_config.sharing_enabled)
+        (this.config().hue_config.is_admin || this.config().hue_config.enable_sharing)
     );
 
     huePubSub.publish(GET_KNOWN_CONFIG_EVENT, this.config);