This commit is contained in:
@@ -24,7 +24,7 @@ export default {
|
||||
initForm(vm)
|
||||
.then(() => {
|
||||
vm.formState.ready = true;
|
||||
vm.readOnly = !vm.rights.change;
|
||||
vm.readOnly = true;
|
||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||
vm.getDataFromApi(vm.$route.params.recordid);
|
||||
generateMenu(vm, false);
|
||||
@@ -36,10 +36,6 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
//path: "/history/:ayatype/:recordid/:useractions?"
|
||||
ayaType: null,
|
||||
recordId: 0,
|
||||
allUserActions: false,
|
||||
obj: {},
|
||||
formState: {
|
||||
ready: false,
|
||||
@@ -53,8 +49,12 @@ export default {
|
||||
methods: {
|
||||
getDataFromApi() {
|
||||
let vm = this;
|
||||
if (vm.formState.loading) {
|
||||
return;
|
||||
}
|
||||
vm.formState.loading = true;
|
||||
//TODO: URL
|
||||
//path: "/history/:ayatype/:recordid/:useractions?"
|
||||
|
||||
let url = API_BASE_URL + recordId;
|
||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
||||
window.$gz.api
|
||||
|
||||
Reference in New Issue
Block a user