Fehler bei Cakeday auf Stable - keine sitesettings.navigation_menu

Cakeday scheint inkompatibel mit dem kürzlich aktualisierten Discourse 2.8.14 zu sein und verursacht einen weißen Bildschirm

 if (siteSettings.navigation_menu !== "legacy") {
      if (cakedayEnabled) {
        api.addCommunitySectionLink({
          name: "anniversaries",
          route: "cakeday.anniversaries.today",
          title: I18n.t("anniversaries.title"),
          text: I18n.t("anniversaries.title"),
        });
      }

      if (cakedayBirthdayEnabled) {
        api.addCommunitySectionLink({
          name: "birthdays",
          route: "cakeday.birthdays.today",
          title: I18n.t("birthdays.title"),
          text: I18n.t("birthdays.title"),
        });
      }
    } else {

Das Problem scheint in Zeile 158 von discourse-cakeday/assets/javascripts/discourse/initializers/cakeday.js zu liegen, die die Tatsache nicht berücksichtigt, dass der stabile Branch sitesettings.navigation_menu noch nicht hinzugefügt hat.

2 „Gefällt mir“

Könnten Sie vielleicht eine .discourse-compatibility-Datei hinzufügen, @tgxworld?

1 „Gefällt mir“

Es sieht so aus, als hätte ich versehentlich die Kompatibilität des Plugins mit stable zuvor gebrochen. Ich habe eine Lösung dafür in FIX: Backwards compatibility of plugin against the stable branch by tgxworld · Pull Request #95 · discourse/discourse-cakeday · GitHub

5 „Gefällt mir“

Das hat es für uns behoben – danke!