Remove toast messages on route change

pull/12/head
cagataycivici 2019-02-08 17:08:07 +03:00
parent 65bf317eb0
commit 18b9541991
2 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ export default {
watch: {
$route() {
this.sidebarActive = false;
this.$toast.removeAllGroups();
}
},
methods: {

View File

@ -29,8 +29,8 @@
<h3>Programmatic</h3>
<div style="padding: .5em 0">
<p-button icon="pi pi-chevron-left" @click="prev" class="p-button-secondary" />
<p-button icon="pi pi-chevron-right" @click="next" style="margin-left: .5em" class="p-button-secondary"/>
<Button icon="pi pi-chevron-left" @click="prev" class="p-button-secondary" />
<Button icon="pi pi-chevron-right" @click="next" style="margin-left: .5em" class="p-button-secondary"/>
</div>
<TabView>