Просмотр исходного кода

When official station successfully created, newStation fields are cleared

theflametrooper 8 лет назад
Родитель
Сommit
c2013798e0
1 измененных файлов с 4 добавлено и 0 удалено
  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) {