Browse Source

When official station successfully created, newStation fields are cleared

theflametrooper 8 years ago
parent
commit
c2013798e0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      frontend/components/Admin/Stations.vue

+ 4 - 0
frontend/components/Admin/Stations.vue

@@ -115,6 +115,10 @@
 					blacklistedGenres,
 				}, result => {
 					Toast.methods.addToast(result.message, 3000);
+					if (result.status == 'success') this.newStation = {
+						genres: [],
+						blacklistedGenres: []
+					}
 				});
 			},
 			removeStation: function (index) {