Add settings purge button
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
c5914d3a28
commit
1b006f91dd
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue