Commit 8f76db4c authored by Phil Hughes's avatar Phil Hughes

changed reactive properties to be static properties

parent da0a5f6d
...@@ -8,13 +8,6 @@ ...@@ -8,13 +8,6 @@
components: { components: {
RadioGroup, RadioGroup,
}, },
data() {
return {
COMMIT_TO_CURRENT_BRANCH: consts.COMMIT_TO_CURRENT_BRANCH,
COMMIT_TO_NEW_BRANCH: consts.COMMIT_TO_NEW_BRANCH,
COMMIT_TO_NEW_BRANCH_MR: consts.COMMIT_TO_NEW_BRANCH_MR,
};
},
computed: { computed: {
...mapState([ ...mapState([
'currentBranchId', 'currentBranchId',
...@@ -39,13 +32,16 @@ ...@@ -39,13 +32,16 @@
); );
}, },
}, },
commitToCurrentBranch: consts.COMMIT_TO_CURRENT_BRANCH,
commitToNewBranch: consts.COMMIT_TO_NEW_BRANCH,
commitToNewBranchMR: consts.COMMIT_TO_NEW_BRANCH_MR,
}; };
</script> </script>
<template> <template>
<div class="append-bottom-15 ide-commit-radios"> <div class="append-bottom-15 ide-commit-radios">
<radio-group <radio-group
:value="COMMIT_TO_CURRENT_BRANCH" :value="$options.commitToCurrentBranch"
:checked="true" :checked="true"
> >
<span <span
...@@ -54,13 +50,13 @@ ...@@ -54,13 +50,13 @@
</span> </span>
</radio-group> </radio-group>
<radio-group <radio-group
:value="COMMIT_TO_NEW_BRANCH" :value="$options.commitToNewBranch"
label="Create a new branch" label="Create a new branch"
:show-input="true" :show-input="true"
:help-text="commitToNewBranchText" :help-text="commitToNewBranchText"
/> />
<radio-group <radio-group
:value="COMMIT_TO_NEW_BRANCH_MR" :value="$options.commitToNewBranchMR"
label="Create a new branch and merge request" label="Create a new branch and merge request"
:show-input="true" :show-input="true"
:help-text="newMergeRequestHelpText" :help-text="newMergeRequestHelpText"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment