Skip to content
Snippets Groups Projects
Select Git revision
  • 2a0d46732f2735c522b14527df5cb29cad85b362
  • main default protected
  • studip-rector
  • ci-opt
  • course-members-export-as-word
  • data-vue-app
  • pipeline-improvements
  • webpack-optimizations
  • rector
  • icon-renewal
  • http-client-and-factories
  • jsonapi-atomic-operations
  • vueify-messages
  • tic-2341
  • 135-translatable-study-areas
  • extensible-sorm-action-parameters
  • sorm-configuration-trait
  • jsonapi-mvv-routes
  • docblocks-for-magic-methods
19 results

QuestionnaireComponent.js

Blame
  • Forked from Stud.IP / Stud.IP
    1744 commits behind, 212 commits ahead of the upstream repository.
    Jan-Hendrik Willms's avatar
    Jan-Hendrik Willms authored and Jan-Hendrik Willms committed
    Closes #3915 and #3914
    
    Merge request studip/studip!2833
    2a0d4673
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    QuestionnaireComponent.js 515 B
    export const QuestionnaireComponent = {
        props: {
            value: Object
        },
        data () {
            return {val_clone: this.value};
        },
        methods: {
            setDefaultValues(value) {
                this.val_clone = Object.assign(value, this.value);
            }
        },
        watch: {
            val_clone: {
                handler(current) {
                    this.$emit('input', current);
                },
                deep: true
            },
            value (new_val) {
                this.val_clone = new_val;
            }
        }
    };