Quellcode durchsuchen

When official station successfully created, newStation fields are cleared

theflametrooper vor 8 Jahren
Ursprung
Commit
c2013798e0
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  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) {