Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fca49a0 authored by Akhil's avatar Akhil 🙂
Browse files

Merge branch 'revert-09feaa67' into 'main'

Revert "Merge branch 'dev/noification-icon-issue' into 'main'"

See merge request e/infra/ecloud/nextcloud-apps/ecloud-theme-helper!45
parents 09feaa67 1c471997
Loading
Loading
Loading
Loading
Loading
+9 −17
Original line number Diff line number Diff line
@@ -87,20 +87,12 @@ function replaceNavbarIcons() {
  $("#header .header-right .magnify-icon").empty();

  /* Notifications icon(Replace src on load) */
  // Select the entire DOM for observing:
  const target = document.getElementById("header");
  // Create a new observer instance:
  const observer = new MutationObserver(function () {

  const notifImgSelector = "#header .notifications .notifications-button img";
    if ($(notifImgSelector).length > 0) {
  replaceNotificationIcon(notifImgSelector);
      observer.disconnect();
    }
  $(notifImgSelector).on("load", function () {
    replaceNotificationIcon(notifImgSelector);
  });
  // Set configuration object:
  const config = { childList: true, subtree: true };
  // Start the observer
  observer.observe(target, config);
}

function replaceActivityIcons() {
@@ -118,7 +110,7 @@ function replaceActivityIcons() {
    comments: getSvgLinkCore("actions", "comment", ""),
    deck: getSvgLinkApp("deck", "deck-dark", ""),
    contacts: getSvgLinkCore("places", "contacts", ""),
    user_settings: getSvgLinkApp("e-user-support-center", "app", ""),
    user_settings: getSvgLinkApp("e-user-support-center", "app", "")
  };

  let currentActive = "";
@@ -274,6 +266,6 @@ $(document).ready(function () {
      replaceSettingsSectionIcons();
	}
  }
  $('#app-navigation [data-id="trashbin"]').removeClass("pinned first-pinned");
  $('#app-navigation [id="quota"]').addClass("pinned first-pinned");
  $('#app-navigation [data-id="trashbin"]').removeClass('pinned first-pinned');
  $('#app-navigation [id="quota"]').addClass('pinned first-pinned');
});