Add settings purge button
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jack Hadrill 2022-03-22 20:09:42 +00:00
parent c5914d3a28
commit 1b006f91dd
1 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,8 @@
</div> </div>
<ConfiguredChannels /> <ConfiguredChannels />
<AddChannel /> <AddChannel />
<h3>Purge all settings</h3>
<button @click="purgeSettings" class="btn btn-danger w-100">Purge settings</button>
</template> </template>
</Content> </Content>
</template> </template>
@ -19,4 +21,9 @@ import Content from '../components/content/Content.vue'
import UserSettings from '../components/userSettings/UserSettings.vue' import UserSettings from '../components/userSettings/UserSettings.vue'
import ConfiguredChannels from '../components/channelSettings/ConfiguredChannels.vue' import ConfiguredChannels from '../components/channelSettings/ConfiguredChannels.vue'
import AddChannel from '../components/channelSettings/AddChannel.vue' import AddChannel from '../components/channelSettings/AddChannel.vue'
function purgeSettings() {
window.localStorage.clear()
document.location.href = "/"
}
</script> </script>