diff --git a/assets/src/components/GlobalSettings.vue b/assets/src/components/GlobalSettings.vue index 7cc0b2e5..4338cf5b 100644 --- a/assets/src/components/GlobalSettings.vue +++ b/assets/src/components/GlobalSettings.vue @@ -6,9 +6,19 @@
  • Go to User Management
  • -
    -

    Before Save

    - + +

    Commands

    + +

    Here you can set commands that are executed in the named events. You write one command + per line. If the event is related to files, such as before and after saving, the environment variable + file will be available with the path of the file.

    + +

    Before Save

    + + +

    After Save

    + +

    @@ -22,13 +32,21 @@ export default { name: 'settings', data: function () { return { + beforeSave: '', + afterSave: '' } }, computed: { ...mapState([ 'user' ]) }, + created () { + // TODO: fetch current settings here + }, methods: { - ...mapMutations([ 'showSuccess' ]) + ...mapMutations([ 'showSuccess' ]), + saveHooks (event) { + event.preventDefault() + } } }