From 803787ba74450f4d24a355f0a6ac1e1b1eeda8a6 Mon Sep 17 00:00:00 2001 From: OsamaSayegh Date: Thu, 25 Apr 2024 02:03:58 +0300 Subject: [PATCH] Revert "Revert "DEV: Migrate custom header links to new objects setting type (#53)"" This reverts commit a178fdd2f7dc7a3488890198ad13f2d7da7cb4c1. --- .discourse-compatibility | 1 + .../components/custom-header-links.hbs | 13 ++-- .../components/custom-header-links.js | 22 +++---- locales/en.yml | 33 +++++++++- .../0002-migrate-custom-header-links.js | 33 ++++++++++ settings.yml | 64 ++++++++++++++++++- .../viewing_custom_header_links_spec.rb | 18 +++--- .../0002-migrate-custom-header-links-test.js | 52 +++++++++++++++ 8 files changed, 204 insertions(+), 32 deletions(-) create mode 100644 migrations/settings/0002-migrate-custom-header-links.js create mode 100644 test/unit/migrations/settings/0002-migrate-custom-header-links-test.js diff --git a/.discourse-compatibility b/.discourse-compatibility index de754a0..dac32ce 100644 --- a/.discourse-compatibility +++ b/.discourse-compatibility @@ -1,3 +1,4 @@ +< 3.3.0.beta2-dev: 0a837d7c044798417b1a7389cc37a67859c25dbe < 3.3.0.beta1-dev: 50061254831a658eba821238a8a1ae0b7029ab09 < 3.2.0.beta2: 061adfe5ae20abbb82be711d373894c30987ec75 < 3.2.0.beta1-dev: c344d0f519bbb3660e306c50c0d1aa1a776c5e13 diff --git a/javascripts/discourse/components/custom-header-links.hbs b/javascripts/discourse/components/custom-header-links.hbs index 3b7cd72..9bf9924 100644 --- a/javascripts/discourse/components/custom-header-links.hbs +++ b/javascripts/discourse/components/custom-header-links.hbs @@ -12,12 +12,13 @@ > {{#each this.links as |link|}}