The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Rocket.Chat/server/startup/migrations/v039.js

16 lines
697 B

RocketChat.Migrations.add({
version: 39,
up() {
if (RocketChat && RocketChat.models && RocketChat.models.Settings) {
const footer = RocketChat.models.Settings.findOne({ _id: 'Layout_Sidenav_Footer' });
// Replace footer octicons with icons
if (footer && footer.value !== '') {
let footerValue = footer.value.replace('octicon octicon-pencil', 'icon-pencil');
footerValue = footerValue.replace('octicon octicon-heart', 'icon-heart');
footerValue = footerValue.replace('octicon octicon-mark-github', 'icon-github-circled');
RocketChat.models.Settings.update({ _id: 'Layout_Sidenav_Footer' }, { $set: { value: footerValue, packageValue: footerValue } });
}
}
}
});