(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-866ec890"],{"0a87":function(a,t,s){"use strict";s.r(t);var e=function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("router-link",{staticClass:"btn btn-light btn-sm",attrs:{to:{name:"jurusan.data"}}},[a._v("kembali")])],1),s("div",{staticClass:"card-body"},[s("jurusan-form"),s("div",{staticClass:"form-group"},[s("b-button",{attrs:{size:"sm",variant:"primary",disabled:a.isLoading},on:{click:a.submit}},[s("b-spinner",{directives:[{name:"show",rawName:"v-show",value:a.isLoading,expression:"isLoading"}],attrs:{small:"",type:"grow"}}),a._v("Simpan")],1)],1)],1),s("div",{staticClass:"card-footer"})])])])},n=[],r=s("5530"),u=s("2f62"),i=s("cecb"),o=s("1297"),c={name:"AddMatpel",created:function(){this.editJurusan(this.$route.params.id)},computed:Object(r["a"])({},Object(u["c"])(["isLoading"])),methods:Object(r["a"])(Object(r["a"])({},Object(u["b"])("jurusan",["updateJurusan","editJurusan"])),{},{submit:function(){var a=this;this.updateJurusan(this.$route.params.id).then((function(t){a.$bvToast.toast("Data jurusan berhasil disimpan.",Object(i["b"])()),a.$router.push({name:"jurusan.data"})})).catch((function(t){a.$bvToast.toast(t.message,Object(i["a"])())}))}}),components:{"jurusan-form":o["a"]}},l=c,d=s("2877"),m=Object(d["a"])(l,e,n,!1,null,null,null);t["default"]=m.exports},1297:function(a,t,s){"use strict";var e=function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("div",[s("div",{staticClass:"form-group"},[s("label",[a._v("Nama jurusan")]),s("input",{directives:[{name:"model",rawName:"v-model",value:a.jurusan.nama,expression:"jurusan.nama"}],staticClass:"form-control",class:{"is-invalid":a.errors.nama},attrs:{type:"text",placeholder:"Nama jurusan"},domProps:{value:a.jurusan.nama},on:{input:function(t){t.target.composing||a.$set(a.jurusan,"nama",t.target.value)}}}),a.errors.nama?s("p",{staticClass:"text-danger"},[a._v(a._s(a.errors.nama[0]))]):a._e()])])},n=[],r=s("5530"),u=s("2f62"),i={name:"FormJurusan",computed:Object(r["a"])(Object(r["a"])({},Object(u["e"])(["errors"])),Object(u["e"])("jurusan",{jurusan:function(a){return a.jurusan}}))},o=i,c=s("2877"),l=Object(c["a"])(o,e,n,!1,null,null,null);t["a"]=l.exports}}]);
//# sourceMappingURL=chunk-866ec890.75385a96.js.map