_getPreferences()

in gr-lfs/gr-lfs-project-info.js [39:51]


  _getPreferences() {
    let encodedRepoName = encodeURIComponent(this.repoName);
    return this.plugin.restApi('/projects/')
      .get(`${encodedRepoName}/${this.plugin.getPluginName()}~lfs:config-project`)
      .then(config => {
        if (!config || Object.entries(config).length === 0) {
          this.$.lfsProjectInfo.hidden = true;
          return;
        }

        this._appliedConfig = config
      })
  }