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

Commit 74234e8a authored by Akhil's avatar Akhil 🙂
Browse files

Add sed to add id and hide entire section

parent c929e679
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -299,5 +299,5 @@ RUN sed -i "s/return in_array(\$user->getBackendClassName(), \['Database', 'Gues
# Seds to remove share option from notes
RUN sed -i ':a;N;$!ba;s/t("NcActionButton",{on:{click:e.onToggleSharing},scopedSlots:e._u(\[{key:"icon",fn:function(){return\[t("ShareVariantIcon",{attrs:{size:20}})\]},proxy:!0}\])},\[e._v("\\n\\t\\t\\t"+e._s(e.t("notes","Share"))+"\\n\\t\\t")\]),e._v(" "),/''/g' ${BASE_DIR}/custom_apps/notes/js/notes-main.js

# Hide the deletion settings by default (as shop has to be checked first)
Run sed -i 's/delete-account-settings"/delete-account-settings",style:"visibility:hidden;"/' ${BASE_DIR}/custom_apps/drop_account/js/drop_account-personal-settings.js
# Add id to delete account settings section and hide it by default
$un sed -i 's/"NcSettingsSection",{attrs:{/"NcSettingsSection",{attrs:{id:"delete-account-settings-section",style:"visibility:hidden;",/' drop_account-personal-settings.js