Pārlūkot izejas kodu

When official station successfully created, newStation fields are cleared

theflametrooper 8 gadi atpakaļ
vecāks
revīzija
c2013798e0
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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) {