diff --git a/bin/svgs.js b/bin/svgs.js index c5f7f35f..ed7b4db6 100644 --- a/bin/svgs.js +++ b/bin/svgs.js @@ -27,5 +27,5 @@ module.exports = [ {id: 'fa-ban', src: 'node_modules/font-awesome-svg-png/white/svg/ban.svg', title: 'Ban'}, {id: 'fa-camera', src: 'node_modules/font-awesome-svg-png/white/svg/camera.svg', title: 'Camera'}, {id: 'fa-smile', src: 'node_modules/font-awesome-svg-png/white/svg/smile-o.svg', title: 'Smile'}, - {id: 'fa-exclamation-triangle', src: 'node_modules/font-awesome-svg-png/white/svg/exclamation-triangle.svg', title: 'Warning'}, + {id: 'fa-exclamation-triangle', src: 'node_modules/font-awesome-svg-png/white/svg/exclamation-triangle.svg', title: 'Warning'} ] diff --git a/routes/_actions/instances.js b/routes/_actions/instances.js index adfb9149..6b22c112 100644 --- a/routes/_actions/instances.js +++ b/routes/_actions/instances.js @@ -19,7 +19,12 @@ export function changeTheme (instanceName, newTheme) { export function switchToInstance (instanceName) { let instanceThemes = store.get('instanceThemes') - store.set({currentInstance: instanceName}) + store.set({ + currentInstance: instanceName, + searchResults: null, + queryInSearch: '', + rawInputTextInCompose: '' + }) store.save() switchToTheme(instanceThemes[instanceName]) } @@ -41,7 +46,8 @@ export async function logOutOfInstance (instanceName) { loggedInInstancesInOrder: loggedInInstancesInOrder, currentInstance: newInstance, searchResults: null, - queryInSearch: '' + queryInSearch: '', + rawInputTextInCompose: '' }) store.save() toast.say(`Logged out of ${instanceName}`) diff --git a/routes/_components/compose/ComposeBox.html b/routes/_components/compose/ComposeBox.html index a5c77941..cd931a87 100644 --- a/routes/_components/compose/ComposeBox.html +++ b/routes/_components/compose/ComposeBox.html @@ -1,17 +1,10 @@