mirror of
https://github.com/frappe/books.git
synced 2025-01-10 18:24:40 +00:00
af0e8523ed
- minor refactor in errorHandling
55 lines
1.1 KiB
Vue
55 lines
1.1 KiB
Vue
<template>
|
|
<div>
|
|
<TwoColumnForm
|
|
v-if="doc"
|
|
:doc="doc"
|
|
:fields="fields"
|
|
:autosave="true"
|
|
:emit-change="true"
|
|
@change="forwardChangeEvent"
|
|
/>
|
|
<div class="flex flex-row justify-end my-4">
|
|
<button
|
|
class="text-gray-900 text-sm hover:bg-gray-100 rounded-md px-4 py-1.5"
|
|
@click="checkForUpdates(true)"
|
|
>
|
|
Check for Updates
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import frappe from 'frappe';
|
|
import TwoColumnForm from '@/components/TwoColumnForm';
|
|
import { checkForUpdates } from '@/utils';
|
|
|
|
export default {
|
|
name: 'TabSystem',
|
|
components: {
|
|
TwoColumnForm,
|
|
},
|
|
data() {
|
|
return {
|
|
doc: null,
|
|
};
|
|
},
|
|
async mounted() {
|
|
this.doc = frappe.SystemSettings;
|
|
this.companyName = frappe.AccountingSettings.companyName;
|
|
},
|
|
computed: {
|
|
fields() {
|
|
let meta = frappe.getMeta('SystemSettings');
|
|
return meta.getQuickEditFields();
|
|
},
|
|
},
|
|
methods: {
|
|
checkForUpdates,
|
|
forwardChangeEvent(...args) {
|
|
this.$emit('change', ...args);
|
|
},
|
|
},
|
|
};
|
|
</script>
|