(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a3df2a5c"],{"2a03":function(a,t,n){"use strict";n("6671")},3889:function(a,t,n){},6671:function(a,t,n){},ad60:function(a,t,n){"use strict";n.r(t);var s=function(){var a=this,t=a._self._c;return t("div",{staticClass:"singgle-container"},[t("div",{staticClass:"modern-card"},[a._m(0),t("div",{staticClass:"card-body"},[t("div",{staticClass:"action-section-center"},[t("el-button",{staticClass:"save-button",attrs:{type:"primary",loading:a.loading},on:{click:a.runMigrations}},[t("i",{staticClass:"el-icon-upload2"}),a._v(" Jalankan Update Database ")])],1)])])])},i=[function(){var a=this,t=a._self._c;return t("div",{staticClass:"card-header"},[t("div",{staticClass:"header-content"},[t("div",{staticClass:"header-icon"},[t("i",{staticClass:"el-icon-warning-outline"})]),t("div",{staticClass:"header-text"},[t("h3",[a._v("Update Database")]),t("p",[a._v(" Klik tombol di bawah ini untuk menjalankan update database. Ini akan memperbarui skema database dengan update terbaru. ")])])])])}],e=n("0d5e"),r=(n("3889"),{data:function(){return{listLoading:!0,loading:!1}},methods:{runMigrations:function(){var a=this;this.loading=!0,e["a"].post("/migrations").then((function(t){a.loading=!1,a.$alert("Migrasi database berhasil dijalankan","Success",{confirmButtonText:"OK",type:"success",callback:function(){a.$router.push("/dashboard")}})})).catch((function(t){a.loading=!1;var n=t.response&&t.response.data&&t.response.data.message||"Terjadi kesalahan pada server";a.$alert(n,"Warning",{confirmButtonText:"OK",type:"warning"})}))}}}),c=r,o=(n("2a03"),n("2877")),d=Object(o["a"])(c,s,i,!1,null,"f9e37d74",null);t["default"]=d.exports}}]);